Paths & Source Strings
Posted: Fri Jan 21, 2005 7:05 am
I'm on a Windows server running the latest PHP version. When trying to 'require' or 'include' it is not allowing me to use the "/" to begin my paths to the source page. These includes will be on multiple pages throughout the directory levels so it is very important that this work. Should it not be working on my server (or in PHP at all)? Here is an example:
Any ideas?
Code: Select all
// the file name "file.php" is in a folder named "includes" on the root
<?php include('/includes/file.php'); ?> // will not work
<?php include('../../includes/file.php'); ?> // works fine