how to get entered URL value in php? [closed]
here i am try to get the Entered URL value .....and i have to print that url....so give me suggestions....
<?php echo $_SERVER['REQUEST_URI']; ?>
Also try this to see some other useful information you can get:
<?php print_r($_SERVER); ?>
Take a look at How to Get the Current Page URL.
The $_SERVER array will contain all the information you need about the URL of the page being requested. You may have to join a few values to get a complete URL, but it will have the host, the file, the URI, etc.
精彩评论