06-06-2010, 03:21 AM
|
#2 (permalink)
|
|
Wizard
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
|
Quote:
Originally Posted by skibbli
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.
|
|
|
|