Mayers
04-09-2006, 04:13 AM
I'm having a odd problem with one of my scripts. My server is loaded with Directadmin. On sites that have more then one domain my script goes crazy. I have the following in the script because it isn't in the same directory a vB
chdir('/home/username/public_html/forum');
Now if I have more then one domain assigned in Directadmin i get this error
Warning: chdir(): No such file or directory (errno 2) in /home/username/domains/address_here.com/public_html/forum/chat/index.php on line 15
Warning: main(./global.php): failed to open stream: No such file or directory in /home/username/domains/address_here.com/public_html/forum/chat/index.php on line 38
Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/lib/php') in /home/username/domains/address_here.com/public_html/forum/chat/index.php on line 38
This is the first time i've seen this happen before. Does anyone know a fix for this?
I'm using PHP 4.4.2.
chdir('/home/username/public_html/forum');
Now if I have more then one domain assigned in Directadmin i get this error
Warning: chdir(): No such file or directory (errno 2) in /home/username/domains/address_here.com/public_html/forum/chat/index.php on line 15
Warning: main(./global.php): failed to open stream: No such file or directory in /home/username/domains/address_here.com/public_html/forum/chat/index.php on line 38
Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/lib/php') in /home/username/domains/address_here.com/public_html/forum/chat/index.php on line 38
This is the first time i've seen this happen before. Does anyone know a fix for this?
I'm using PHP 4.4.2.