Embedding Image Into PHP?

XcapeX

Madly Diligent
Joined
Jul 30, 2008
Messages
6,397
Reaction score
0
FP$
6
So you can go to websites and try to select an image..but you can't. How to do this with php? I don't want my image clickable.
 
You do this in CSS. PHP is a server side language, it doesn't parse images/styles. And anybody can get the image URL through Firebug or something similar. The only site that I haven't been able to get an image URL for is eBay.
 
No, it doesn't. Your images can be stolen all the time. Also, CSS doesn't really stop image steals, never even heard of that ever being able to. There are ways to not hot-link files. I would search more on that, this does probably require PHP in some cases, I don't really bother with that. But really search for hot-linking and stuff.
 
If you use php with mysql you will be able to store the images in a mysql database and have them display using php 🙂
 
Yeah, though he wants them to not be able to be "stolen." So he can either get rid of the Right click function via JS and than do no hot-linking.
 
hmmm, but the right click JS is easy to get round :S, I'll have a look see what I can find out 🙂
 
You could use CSS and then find a way to protect your css file, or directory. Other than that, its impossible. There are hundreds of ways to obtain your site's images.

Also, why don't you want them clickable? I mean, you would either have unique images which could be used somewhere else (like a logo), or a pretty general image which could be found anywhere.
 
Antarctic said:
Why not just put a watermark?

While that is practical it does not look very nice on general website images, hmmmm just going to find more helpful links.
 
Back
Top Bottom