Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Htaccess/gd Problems.
toby
post Jun 3 2007, 09:14 AM
Post #1


Super Member
Group Icon

Group: Members
Posts: 555
Joined: 29-September 06
Member No.: 16,228



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.

This post has been edited by toby: Jun 3 2007, 09:17 AM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Some Problems Sometimes On Other Sites!(2)
  2. Problem With PHP Scripts Without MySQL(1)
  3. Simple PHP News System Problems(1)
  4. User Authentication Session Handling Problems(14)
  5. Making My Album(3)
  6. I'm Having Problems With Sessions(2)
  7. Five Common Php Database Problems(0)


 



- Lo-Fi Version Time is now: 4th December 2008 - 03:10 AM