Hey all!
I set up an .htaccess file to create a .php page when an image file is requested. This prevents hotlinking because php files won't load as a background or image inside someone's page. It would allow someone to simply link directly to an image, but then my website would be displayed around the image.
(found this pretty elegent method on alistapart: http://www.alistapart.com/articles/hotlinking/ )
Click here to see it in action, before I ask my question: photo
What I wanted to do was have the php file load my actual site design, like a template, with the image loading in the middle. When I did this, it wouldn't load any of the images in my design. The php file is in my root directory, so all links should have worked. (I'm guessing it has something to do with the relative path, in relation to wherever the main image is that is being hotlinked to?)
Did this make sense? Any advice?
Thanks
I set up an .htaccess file to create a .php page when an image file is requested. This prevents hotlinking because php files won't load as a background or image inside someone's page. It would allow someone to simply link directly to an image, but then my website would be displayed around the image.
(found this pretty elegent method on alistapart: http://www.alistapart.com/articles/hotlinking/ )
Click here to see it in action, before I ask my question: photo
What I wanted to do was have the php file load my actual site design, like a template, with the image loading in the middle. When I did this, it wouldn't load any of the images in my design. The php file is in my root directory, so all links should have worked. (I'm guessing it has something to do with the relative path, in relation to wherever the main image is that is being hotlinked to?)
Did this make sense? Any advice?
Thanks






