Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Andy] How do I extract a php variable in one directory into a cgi file in another directory?

Quote Reply
Re: [Andy] How do I extract a php variable in one directory into a cgi file in another directory? In reply to
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.

Last edited by:

V.E.C.T.O.R.: Jun 4, 2009, 10:36 PM
Subject Author Views Date
Thread How do I extract a php variable in one directory into a cgi file in another directory? V.E.C.T.O.R. 7629 May 25, 2009, 12:16 PM
Thread Re: [V.E.C.T.O.R.] How do I extract a php variable in one directory into a cgi file in another directory?
Andy 7369 May 26, 2009, 12:28 AM
Post Re: [Andy] How do I extract a php variable in one directory into a cgi file in another directory?
V.E.C.T.O.R. 7368 May 26, 2009, 9:22 PM
Thread Re: [V.E.C.T.O.R.] How do I extract a php variable in one directory into a cgi file in another directory?
V.E.C.T.O.R. 7354 Jun 2, 2009, 12:04 PM
Thread Re: [V.E.C.T.O.R.] How do I extract a php variable in one directory into a cgi file in another directory?
V.E.C.T.O.R. 7352 Jun 2, 2009, 10:24 PM
Thread Re: [V.E.C.T.O.R.] How do I extract a php variable in one directory into a cgi file in another directory?
Andy 7328 Jun 2, 2009, 11:16 PM
Thread Re: [Andy] How do I extract a php variable in one directory into a cgi file in another directory?
V.E.C.T.O.R. 7375 Jun 3, 2009, 6:15 AM
Thread Re: [V.E.C.T.O.R.] How do I extract a php variable in one directory into a cgi file in another directory?
Andy 7336 Jun 3, 2009, 6:25 AM
Thread Re: [Andy] How do I extract a php variable in one directory into a cgi file in another directory?
V.E.C.T.O.R. 7337 Jun 4, 2009, 10:34 PM
Post Re: [V.E.C.T.O.R.] How do I extract a php variable in one directory into a cgi file in another directory?
V.E.C.T.O.R. 7329 Jun 5, 2009, 6:46 AM