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,
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;
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
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
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);
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;) ||
6 matches
Mail list logo