Witam. Mam taki problem - zrobilem sobie sygnaturke w php, wszystko pieknie ale jak to wstawic do podpisu chocby na jakims forum? Ta sygnaturka ma rozszerzenie .php a generuje obrazek png. Ten skrypt jest tutaj:
http://members.lycos.co.uk/einzeinbleth/sygnatura.php a chcialbym by mial rozszerzenie png. Co zrobic z tym, bo nie moge miec w podpisie obrazka z rozszerzeniem php (IMG:
http://forum.php.pl/style_emoticons/default/sad.gif)
Przepraszam za dosc chaotyczny post. Aha moze trzeba cos w kodzie zmienic? Pelny kod skryptu:
<?php
$image=ImageCreate(300, 90);
$bialy = ImageColorAllocate($image, 255, 255, 255);
$szary = ImageColorAllocate($image, 20, 20, 20);
$ziel = ImageColorAllocate($image, 0, 255, 0);
$ip = $REMOTE_ADDR;
$host = gethostbyaddr($ip);
if (isset($_GET['name'])) $name=$_GET['name'];
else
$name=\"Einzeinbleth\";
if (isset($_GET['email'])) $email=$_GET['email'];
else
$email=\"Einzeinbleth@wroclaw.mm.pl\";
$www=$_GET['www'];
else
$www=\"www.Einzeinbleth.gtw.pl\";
if (isset($_GET['text'])) $text=$_GET['text'];
else
$text=\"Sygnaturka -.-\";
imagefill($image, 150, 45, $szary);
imagerectangle($image, 0, 0, 300, 90, $ziel );
imagerectangle($image, 2, 2, 298, 88, $ziel );
ImageString($image, 3, 5, 5, $name, $bialy);
ImageString($image, 3, 5, 15, $email, $bialy);
ImageString($image, 3, 5, 25, $www, $bialy);
ImageString($image, 2, 5, 70, $ip . \" @ \" . $host, $bialy);
imagerectangle($image, 5, 40, 295, 42, $ziel );
ImageString($image, 9, 40, 50, $text, $ziel);
header(\"Cache-Control: no-cache, must-revalidate\"); header(\"Pragma: no-cache\"); header(\"Expires: \" . time()); header(\"Content-type: image/png\"); ImagePNG($image);
ImageDestroy($image);
?>
------------------------------
Proszę używać tagu [php]
crashu