开发者

how to get entered URL value in php? [closed]

开发者 https://www.devze.com 2023-02-18 04:23 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhet开发者_如何学运维orical andcannot be reasonably answered in its current for
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhet开发者_如何学运维orical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消