PDA

View Full Version : global.php


XiXora
01-20-2002, 09:51 PM
how do i include global.php into a non vb page so i can get all its info etc from it
when i include it it cant find things in other files becuase all my sttuff is in /forums and my website is in root.
if i put all the paths in i get a blank page.
any idea why and how to fix this?

thanx
Damon

Admin
01-21-2002, 07:53 AM
You need to change directory (http://www.php.net/manual/en/function.chdir.php) first before requiring global.php.
For example:
chdir('./forums');
require('global.php');