Ok, I all of a sudden wanted to see if it's possible to have the links directory become a subdomain of my website, since if it's possible, might as well do it before I finish off everything else. So anyway I got stuck while trying to log in via vbulletin again, in the static part of the directory. So what I'm saying is, before the following code worked just fine:
<?
chdir("../");
chdir("./vbulletin");
require("login.php");
?>
After I created a subdomain however, the code above no longer works. To elaborate, before the $username variable that I got from the login.php file would actually get the username if logged in, but now it spits out "Unregistered" no matter what, making Links think that the user is always logged out. Maybe I'm not understanding the concept of subdomains correctly? Anyone know what I have to do to get this working correctly? Thanks in advance for any help.
<?
chdir("../");
chdir("./vbulletin");
require("login.php");
?>
After I created a subdomain however, the code above no longer works. To elaborate, before the $username variable that I got from the login.php file would actually get the username if logged in, but now it spits out "Unregistered" no matter what, making Links think that the user is always logged out. Maybe I'm not understanding the concept of subdomains correctly? Anyone know what I have to do to get this working correctly? Thanks in advance for any help.