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
Hi Andy,

Ya I also found something similar that I tried last night:

<?
require ($_SERVER["DOCUMENT_ROOT"]."/vbulletin/login.php");
?>

What this and your code do is produce errors within login.php which also requires other files elsewhere within the vBulletin directory. It must have something to do with using absolute paths all of a sudden while trying to use relative paths for all other cases. I got frustrated and eventually came up with the funny looking solution, but hey it works. :D
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. 7555 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 7296 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. 7295 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. 7281 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. 7279 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 7255 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. 7302 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 7263 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. 7263 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. 7256 Jun 5, 2009, 6:46 AM