abdfahim Posted July 3, 2007 Share Posted July 3, 2007 Suppose i have a website www.myweb.com. I want to retrieve the page address in a php variable in each page. Like, when anyone enter www.myweb.com/page1.php, then a variable (say $site) in that page will return the address, i.e. I want echo $site; //return www.myweb.com/page1.php or page1.php Is it possible in php? Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted July 3, 2007 Share Posted July 3, 2007 Read this article u will get some idea. http://php.net/reserved.variables Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.