Jump to content

[SOLVED] how to retrieve page address


abdfahim

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.