View Single Post
Old 06-06-2010, 03:21 AM   #2 (permalink)
Village Idiot
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by skibbli View Post
i want to be able to refer to an image on the INSIDE of a php file.

like this:

<img src=".?img=file.gif">

But. when i mean the INSIDE i mean the image data is literally included in the file, i know this is possible because ive seen it done in the c99 shell. i wasn't able to figure out exactly how they did it because the code is so complex
Use the header function to set the MIME type to the image type you are using, then print the file content using fopen and related functions.
__________________

Village Idiot is offline  
Reply With Quote
The Following User Says Thank You to Village Idiot For This Useful Post:
skibbli (06-06-2010)