It doesn't work with files in different directories. I'm using a header file, where the global.php include comes in. I use the header file throughout my site. However, I get an error similar to erinys (page 2):
Code:
Warning: main(administrator/components/com_smf/config.smf.php): failed to open stream: No such file or directory in /home/6304/bunnybunch.nl/HTML/templates/247portal-b-grey/index.php on line 33
Fatal error: main(): Failed opening required 'administrator/components/com_smf/config.smf.php' (include_path='.:/usr/local/lib/php') in /home/6304/bunnybunch.nl/HTML/templates/247portal-b-grey/index.php on line 33
(thats his error code) This is using the chdir() function. Is there another way to get the global.php (and the include inside of it) to work properly throughout various directories without having to go through each file and changing it manually?