The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
I realize this isn't a specific vbulletin issue, but I'm pulling my hair out trying to determine why I can't include global.php ouside of my forums directory.
I'm attempting to include global.php in my index (as well as a few other files) so I can load forum stats. This is my php: Code:
$curdir = getcwd (); $forumpath = './forums/'; chdir($forumpath); include('./global.php'); chdir ($curdir); Code:
ls -al forums/global.php -rw-r--r-- 1 www-data www-data 2071 Jan 2 05:56 forums/global.php Code:
$con = mysql_connect("localhost","user","pass"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("db", $con); |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|