Quote:
Originally Posted by kkiely
I use
<?php
chdir("vbforum/");
require('./global.php');
chdir("../");
?>
and it works fine
|
I use
PHP Code:
<?php
$cwd = getcwd();
chdir('/var/www/forums');
require_once('./global.php');
chdir($cwd);
?>
and it works sometimes and not others. I've been dissecting the code more and have learned what causes the error. It all depends on what you are trying to do though, but I got it down pat pretty well.