how to include a file

piorivas

New Member
Messages
3
Reaction score
0
Points
0
How do i include a file/folder that is outside the public_html folder. a folder that is not directly accessible from the web.
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
Well, in PHP, you could do this:

PHP:
<?php
include('/path/to/file/'); //file doesn't have to be in /home/user/public_html/. Could be in /home/user/asdf/
?>
 
Top