Directory handling
Posted: Fri Nov 26, 2004 5:29 pm
Sorry, I have another problem. Running Apache 2 in windows, I come across a problem that is absent when running Apache 2 in linux.
I have a folder called 'scripts' in the root directory and then a file called 'functions.php' in the 'scripts' folder.
root (htdocs)
|scripts
|--functions.php
(And of course there are other files in the root directory including index.php)
In functions.php, I have lines that call several other files in the 'scripts' folder. They are called out like:
Now in Windows, when I call upon index.php, there is a function that calls functions.php to execute (with all the code inside) and when it gets to the code listed above in functions.php, it returns a "file not found" error. I assume it is looking for the file:
instead of
In linux I do not have this problem and everything functions properly.
Anybody know why this happens and what I can do to fix it? Thanks.
I have a folder called 'scripts' in the root directory and then a file called 'functions.php' in the 'scripts' folder.
root (htdocs)
|scripts
|--functions.php
(And of course there are other files in the root directory including index.php)
In functions.php, I have lines that call several other files in the 'scripts' folder. They are called out like:
Code: Select all
require('scripts/file1.php');
require('scripts/file2.php');
require('scripts/file3.php');
...Code: Select all
root/scripts/scripts/file1.phpCode: Select all
root/scripts/file1.phpAnybody know why this happens and what I can do to fix it? Thanks.