Re: [PHP] getting current page url

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 6:21 am, Schalk wrote: > Possibly a very simple question but here goes. How would I code the > following in PHP? > > if(window.location == (("http://www.epda.cc/index.php";) || The closest moral equivalent to window.location in PHP is probably $_SERVER['PHP_SELF']... Actual

Re: [PHP] getting current page url

2006-04-28 Thread Wolf
You could also use $self =explode("/", $_SERVER['PHP_SELF']); and then parse along those lines. Wolf Schalk wrote: > Greetings All, > > Possibly a very simple question but here goes. How would I code the > following in PHP? > > if(window.location == (("http://www.epda.cc/index.php";) || > ("

Re: [PHP] getting current page url [RESOLVED]

2006-04-28 Thread Jochem Maas
Schalk wrote: Jochem Maas wrote: do a search $_SERVER['PHP_SELF'] - it should answer all your question. if in doubt a var_dump() can do wonders (in this finding out what kind of info is generally available, e.g.: '; var_dump($_SERVER, $_REQUEST, $_ENV, $_POST, $_GET); Thanks Jochem, no

Re: [PHP] getting current page url [RESOLVED]

2006-04-28 Thread Schalk
Jochem Maas wrote: do a search $_SERVER['PHP_SELF'] - it should answer all your question. if in doubt a var_dump() can do wonders (in this finding out what kind of info is generally available, e.g.: '; var_dump($_SERVER, $_REQUEST, $_ENV, $_POST, $_GET); Thanks Jochem, A combination $_SERV

Re: [PHP] getting current page url

2006-04-28 Thread Jochem Maas
do a search $_SERVER['PHP_SELF'] - it should answer all your question. if in doubt a var_dump() can do wonders (in this finding out what kind of info is generally available, e.g.: '; var_dump($_SERVER, $_REQUEST, $_ENV, $_POST, $_GET); Schalk wrote: Greetings All, Possibly a very simple ques