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
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";) ||
> ("
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
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
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
5 matches
Mail list logo