Quote:
Originally Posted by cory_booth
Replace the line:
require_one ./gobal
With:
PHP Code:
$curdir = getcwd (); chdir('/yourpath/to/site/public_html/forum'); require_once('/yourpath/to/site/public_html/global.php'); chdir ($curdir);
Will allow you to put the php files anywhere on the site (i.e. mydomain.com/pages/)
|
Actually, if you chdir, you don't want to then put the whole path to the global.php file. You would just go:
PHP Code:
$curdir = getcwd ();
chdir('/yourpath/to/site/public_html/forum');
require_once('./global.php');
chdir ($curdir);