aroma Posted June 10, 2009 Share Posted June 10, 2009 welcome..how can I get the pathname for website (ofcorse Imain pathname without domai..)???like this:www.sara.com/sara.php&p=12I know method like it but in java script not php..(window.location.pathname)..thnks,, Link to comment Share on other sites More sharing options...
Natechs Posted June 10, 2009 Share Posted June 10, 2009 <?php echo $_SERVER['PHP_SELF']; ?> gets the current path of the script. If that is what you mean. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 10, 2009 Share Posted June 10, 2009 $_SERVER['REQUEST_URI'] contains the URL the browser requested, excluding the hostname. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.