Hi all,
Can anyone help me with this:
I have a script in a subdomain:
http://script.mysite.com
My vBulletin is located in here:
http://www.mysite.com/forum/
In the script (in the subdomain) I am using the following code so that I can access the VB variables that I need:
PHP Code:
//vBulletin Variables Start
chdir("/home/******/public_html/forum");
include("./global.php");
if ($vbulletin->userinfo['userid']!=0) {
// Some code here
} else {
// Some different code here
}
The variables are not being accessed. I presume this is to do with the fact that the script is in a subdomain of my site but no matter how many different variations I try I just cant crack it.
If anyone can solve this I would be very happy. Thanks for any help in advance.
Kind regards