Quote:
Originally posted by mhd
i) configure php/apache2 to run php scripts out side of the public_html directory
|
You can change your public_html folder to whatever you want in the apache config files, but then all your pictures will be directly accessible to the public
Quote:
Originally posted by mhd
ii) run php with links to files outside public_html directory
|
If you mean a
Code:
<img src="somewhere/outside/public_html" />
then no. You can use php, if compiled with gd support to grab the image, then manipulate (eg resize to a smaller size, or add a water mark) then use php to output the image to the browser, so for example in your html you would have a link
Code:
<img src="images.php?id=1;size=2;watermark=yes" />
and images.php would contain the code to retrive the image and output to the browser, this way the image is not directly accessible to the public