Forum Moderators: coopster

Message Too Old, No Replies

php image help

         

StuntasticAudi

9:49 pm on Sep 24, 2006 (gmt 0)

10+ Year Member



I have a top sites script and when members sign up they are given a code to place on their page. Below is an example of a random user:


<a href="http://www.********.com/top/in.php?id=127">
<img src="http://www.*******.com/top/button.php?id=127" border="0" />
</a>

This will display on most sites but the sites that do not support php it does not. Is there a way to change the image link so its not button.php?id=127 but just a regular image link for id # 127.?

ahmedtheking

9:51 pm on Sep 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well the extension doesn't matter. It's what's in the file that counts! This PHP image file, have you declared the header that classifies the data as image data?

Eg:

header('Content-Type: image/jpeg');

StuntasticAudi

9:57 pm on Sep 24, 2006 (gmt 0)

10+ Year Member



Yes the file is an image but it will not show up on a page that does not support php it just shows as two dots ..

ahmedtheking

8:06 am on Sep 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ok, can you mail me a link so I can see?

Birdman

2:14 am on Sep 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<img src="http://www.*******.com/top/button.php?id=127" border="0" />

If the URL in the above img tag point to your site, then it should not matter whether or not the user's site supports PHP. As long as your image script (button.php) sends the correct headers.

I do believe that some old browsers get confused by the .php extension inside an image tag.

Can we see the image script?