Log in

View Full Version : Global.php Integration


gmarik
08-02-2003, 12:00 PM
I connected some php files to global.php functions outside the vb root directory (no cookies included) on my localhost, but nothing works, just a blank screen. What part of code needs to be deleted from global.php to work outside vb root? :classic:

Xenon
08-02-2003, 12:19 PM
nothing needs to be deleted, it works without problems.

you just have to chdir before you include it :)

gmarik
08-03-2003, 07:02 AM
Like - I see only a blank screen.
There must be something .... :chinese:

Erwin
08-03-2003, 10:36 AM
If global.php is outside the forum directory, you need to specify the path to it.

NTLDR
08-03-2003, 01:05 PM
<?php

chdir('./forums');
require_once('./global.php');

// your php here

?>

dezoris
08-03-2003, 11:02 PM
doesn't work for me... any more help ?

N9ne
08-03-2003, 11:08 PM
Are you on a linux server?

dezoris
08-06-2003, 07:23 AM
yes... what does it change ?

Interdit
08-06-2003, 06:42 PM
How can i just include on a outside php file the vbheader, background and footer of vb3 beta5 ?

having some problem with the require global.php as well

thx
francois