[PHP] images outside of document root

2004-07-06 Thread Dennis Gearon
I want to keep an entire library OUTSIDE of the document root. The library includes some imgages. How can I have the browser include the imageges? I've hard of BASE64'ing the images into the header and decoding them using javascript. Is this the best way? Where is code to do that? -- PHP

Re: [PHP] images outside of document root

2004-07-06 Thread Curt Zirzow
* Thus wrote Dennis Gearon: I want to keep an entire library OUTSIDE of the document root. The library includes some imgages. How can I have the browser include the imageges? I've hard of BASE64'ing the images into the header and decoding them using javascript. Is this the best way? Where

Re: [PHP] images outside of document root

2004-07-06 Thread Dennis Gearon
I may do that, but the 'showimage.php' file then has to be in the document root, and can be attacked a LOT. I have found ways to do inline images, without javascript, I believe. Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Dennis Gearon: I want to keep an entire library OUTSIDE of the

Re: [PHP] images outside of document root

2004-07-06 Thread Keith Greene
I use a system like that described below, however I added some checks to thwart attack. first, the image serving script checks to make sure the user has a session id. This prevents people just loading the script to get the images, and also deters hot linking. second, I have a script that runs