Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I show and image using PHP?

Status
Not open for further replies.

LeonKl2

Programmer
Jun 16, 2003
26
US
I'm trying to create an invisible tracker using PHP but the image it serves up always creates an error image and so it becomes visible.

I call the script like this:

<img src=&quot;script.php&quot;>

Then the script is something like:

<?php

//PHP stuff

?>
<img src=&quot;blank.gif&quot;>

What am I doing wrong?

Thanks
 
Maybe this will work...

Code:
<img src=&quot;<?php require (&quot;script.php&quot;); ?>&quot;>

Then the script is something like:

<?php

//PHP stuff

?>
blank.gif

...but this still seems silly.


- - picklefish - -
 
That wont work because the tracker wont be on my site and if it was then I wouldn't need the image. I could just run the script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top