Jump to content
xisto Community
Sign in to follow this  

Htaccess/gd Problems.

Recommended Posts

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




But, with the normal htaccess of

RewriteEngine onRewriteRule ^sig.png$ gd.php


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


<?phpheader("(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.

Edited by toby (see edit history)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.