Log in

View Full Version : Simple scripting question


costcrunchers
04-11-2012, 03:39 PM
Warning: include_once(./global.php) [function.include-once]: failed to open stream: No such file or directory in wp-plugins/vbbridge/vbloader.php on line 16

because of this
include_once('./global.php');

the global php is in this directory
/public_html/4tiControl/vb

how do i change the above to make it look in this folder

Thanks

kh99
04-11-2012, 04:04 PM
You need to do something like this:

$curdir = getcwd ();
chdir('/public_html/4tiControl/vb');
require_once('./global.php');
chdir ($curdir);


because the vb code won't work right unless the current directory is the one with global.php.

costcrunchers
04-11-2012, 04:23 PM
cool thanks