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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding an Image

Status
Not open for further replies.

hermes1

Programmer
Oct 22, 2003
38
US
I would like to know if this is possible in PHP. How would i hide the src of an image by the code that displays it. For example i have PHP that generates an image i want if you right click on this image you see encrypted characters to hide the location of the image.
 
Even if you "hide" the source, the image is displayed, it is in the browser cache, people de facto have it.

Suggestions:
Set the image source to a PHP script that streams the image data (from the real file). Pass a parameter to the PHP which expires.
 
you can make a .php file which generates a temp file from the original image..

eg. <img src="image.php?id=1" />
you then either have to have images in database, or an dirlist script maybe?? I'm not sure how you would like to do this, but you need some sort of array to the images.

you could have a table with temp. expiring id's.. eg. alternative id's, which are generated and deleted when expired.

it's some work, but I think it's a fun project.
I have a similar to that myself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top