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? Link to comment https://forums.phpfreaks.com/topic/58168-solved-how-to-retrieve-page-address/ 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 Link to comment https://forums.phpfreaks.com/topic/58168-solved-how-to-retrieve-page-address/#findComment-288501 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.