Hi all,
What's the syntax for including/requiring files located in directories
different than the root directory? Especially files from different sub
directories under the root? Going down (classes/globals.php) is ok,
but going up (../globals.php) makes problems
Example:
index.php:
including/requiring a file does not change the directory, the code is
simply inserted into the current context. So you should have:
index.php: include_once('classes/globals.php')
dbase.php: include_once('classes/globals.php')
controller.php:
* Thus wrote Allex ([EMAIL PROTECTED]):
Hi all,
What's the syntax for including/requiring files located in directories
different than the root directory? Especially files from different sub
directories under the root? Going down (classes/globals.php) is ok,
but going up (../globals.php)
3 matches
Mail list logo