Jump to content

renaxgade

Member
  • Posts

    5
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About renaxgade

renaxgade's Achievements

0

Reputation

  1. Hrmm, it doesn't seem to be working. The sig just displays me code of php, so I don't think that the .htaccess is working. The weird thing is, it doesn't look like it's in the directory, but If i type it in from command line it works. Do I have to tell my http.conf to look for .htaccess ?
  2. I'm not sure if my php is configured correctly. Can someone check if http://renaxgade.net/test.php is enabled for these kind of sigs?
  3. Ok, well I'm trying to follow all of this. I have a file called .htaccess and it looks like this <Files ipaddress.jpg> ForceType application/x-httpd-php </Files> I also have a file called ipaddress.jpg that looks like this: <?php Header ('Content-type: image/png'); Header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); Header('Expires: Thu, 19 Nov 1981 08:52:00 GMT'); Header('Pragma: no-cache'); // create the image $image = imagecreatefrompng("bg.png"); // set the colours $cool = imagecolorallocate($image, 81, 86, 96); $black = imagecolorallocate($image, 0, 0, 0); $white = imagecolorallocate($image, 255, 255, 255); $red = imagecolorallocate($image, 255, 0, 0); $grey = imagecolorallocate($image, 204, 204, 204); $green = imagecolorallocate($image, 206, 129, 18); $blue = imagecolorallocate($image, 0, 0, 255); // set the font and print text $font = 'Arial.ttf' ImageTTFText ($image, 8, 0, 10, 17, $white, $font, "Your IP Address is... ".$REMOTE_ADDR); // output and destroy imagepng($image); imagedestroy($image); ?> When I open the jpg through a php enabled browser, it just gives me the code back for ipaddress. No image just code. The bg.png is also in that folder. BTW: I am using a Windows Apache server with php, and in my php info I can't find anything with "GD" in it, I searched.
×
×
  • Create New...