getting current page url

From: Date: Fri, 28 Apr 2006 11:21:42 +0000
Subject: getting current page url
Groups: php.general 
Request: Send a blank email to php-general+get-234984@lists.php.net to get a copy of this message
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";
} What I am trying to accomplish is something like this: <?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";
} ?> <?php include($current_nav); ?> Thanks! -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Business.Solution.Developers

« previous php.general (#234984) next »