Jump to content

PHP Gif images


jinxhacker

Recommended Posts

Your best/easiest bet is to create a custom htaccess rule for a single folder on your site that forces the PHP engine to parse files with the .gif extension. This will cause all sorts of troubles for any actual gif files you put in this folder, though.

Link to comment
Share on other sites

I dont understand what the problem is though?

 

why is it so important to have the images set as gif's? the GD library works in that way by passing the relevant stuff through a php script therefore it should show that. At the end of the day, what is produced is a gif its merely the URL to produce it that appears to be a php file.

Link to comment
Share on other sites

I dont understand what the problem is though?

 

why is it so important to have the images set as gif's? the GD library works in that way by passing the relevant stuff through a php script therefore it should show that. At the end of the day, what is produced is a gif its merely the URL to produce it that appears to be a php file.

 

^ what he said.

Link to comment
Share on other sites

I dont understand what the problem is though?

 

why is it so important to have the images set as gif's? the GD library works in that way by passing the relevant stuff through a php script therefore it should show that. At the end of the day, what is produced is a gif its merely the URL to produce it that appears to be a php file.

there going to be shown on forums thru other web sites sort of like what xbox has for gamertags.

Link to comment
Share on other sites

I dont understand what the problem is though?

 

why is it so important to have the images set as gif's? the GD library works in that way by passing the relevant stuff through a php script therefore it should show that. At the end of the day, what is produced is a gif its merely the URL to produce it that appears to be a php file.

there going to be shown on forums thru other web sites sort of like what xbox has for gamertags.

 

IF you're using GD you can still usually stick the script that generates it in an img tag as it outputs the image file.

Link to comment
Share on other sites

I dont understand what the problem is though?

 

why is it so important to have the images set as gif's? the GD library works in that way by passing the relevant stuff through a php script therefore it should show that. At the end of the day, what is produced is a gif its merely the URL to produce it that appears to be a php file.

 

Many forums only allow gif/jpg extensions for image URLs.

Link to comment
Share on other sites

AddType application/x-httpd-php .gif

 

As mentioned, you ought to keep that in a separate folder with these images and make sure you don't have any ordinary gifs in the folder.

 

yes this method worked for me. as well as

 

RewriteEngine On

RewriteRule modernart.png modernart.php

;)

 

PNG

captcha2.png

 

GIF

captcha2.gif

 

GingerRobot your method is the best method to use it for thank you all for all the help.

Link to comment
Share on other sites

ok so basically this is what it ends up as.

AddType application/x-httpd-php .png

RewriteEngine On

RewriteRule .png captcha.php

 

so what i figured out is that what ever u name it i will work such as

 

http://gmasterz.com/sigs/captcha2.png

http://gmasterz.com/sigs/waukdwklkwd.png t

http://gmasterz.com/sigs/idontreallyexist.png

 

how would i get just the name out of there so i can create a image that would generates stats for individual users?

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.