On this shell, that has shared apache, php and gd, I have this file working.

http://users.phoenix-network.org/~tobylane/gd.php

But, with the normal htaccess of
CODE
RewriteEngine on
RewriteRule ^sig.png$ gd.php

http://users.phoenix-network.org/~tobylane/sig.png

Doesn't work. Also, another gd picture doesn't display the text.

CODE
<?php
header("(anti-spam-(anti-spam-(anti-spam-content-type:))) image/png");
$im = imagecreatefrompng("button.png");
$bg = imagecolorallocate($im,255,55,25);
imagefill($im,0,0,$bg);
imagestring($im,3,20,5,"Your IP is ",$bg);
imagepng($im);
imagedestroy($im);
?>
The second line is supposed to be header("Content-type: image/png");;

Any ideas? Edit: Also, how can I use mt rand to make the first more random? It's an array of the texts.

 

 

 


Comment/Reply (w/o sign-up)