elegion
08-22-2006, 12:10 PM
I’m new to PHP, and I have a fairly easy question to ask, how do I know if it is a non-web accessible directory, and where do I place that directory?
I basically created a directory called “includes”. And then moved all my php files to that directory. After which, I created and implemented the following code in the web accessible root directory:
require (“/www/includes/somefile.php”); (didn’t work, tried it without /www/)[/PHP]
All in all, I’ve tried to call the files in /includes/index.php online, but nothing seemed to work. Is there something I’m missing, or doing wrong?
Thank you for your time.
I basically created a directory called “includes”. And then moved all my php files to that directory. After which, I created and implemented the following code in the web accessible root directory:
require (“/www/includes/somefile.php”); (didn’t work, tried it without /www/)[/PHP]
All in all, I’ve tried to call the files in /includes/index.php online, but nothing seemed to work. Is there something I’m missing, or doing wrong?
Thank you for your time.