files that are outside of htdocs?
Posted: Wed Nov 18, 2009 5:34 am
Greetings,
what I want to do is prevent direct access to files by placing them outside of htdocs and access them with a login script that is in htdocs. I went into php.ini both in apache/bin and in windows and uncommented this line: include_path = ".;C:\xampp\php\includes\"
Then I put a jpg file in there and tried to access it from the web page as follows:
<img src="C:/xampp/php/includes/284.jpg">
The image doesn't show. How do I make my web page access files that are outside of
htdocs? I've tried using both forward and backward slashes.
what I want to do is prevent direct access to files by placing them outside of htdocs and access them with a login script that is in htdocs. I went into php.ini both in apache/bin and in windows and uncommented this line: include_path = ".;C:\xampp\php\includes\"
Then I put a jpg file in there and tried to access it from the web page as follows:
<img src="C:/xampp/php/includes/284.jpg">
The image doesn't show. How do I make my web page access files that are outside of
htdocs? I've tried using both forward and backward slashes.