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']... Actually,

[PHP] getting current page url

2006-04-28 Thread Schalk
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;) || (http://www.epda.cc/;))) { $current_nav = includes/home_nav.php; } else { $current_nav = includes/inside_nav.php;

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.: ?php echo 'pre'; var_dump($_SERVER, $_REQUEST, $_ENV, $_POST, $_GET); Schalk wrote: Greetings All, Possibly a

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.: ?php echo 'pre'; var_dump($_SERVER, $_REQUEST, $_ENV, $_POST, $_GET); Thanks Jochem, A

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.: ?php echo 'pre'; var_dump($_SERVER, $_REQUEST, $_ENV, $_POST, $_GET);

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;) ||