PHP gets the two codes of the current page url path

WBOY
Release: 2016-07-25 09:00:06
Original
799 people have browsed it
  1. $url_this = "http://".$_SERVER ['HTTP_HOST'].$_SERVER['PHP_SELF'];
  2. echo $url_this;
  3. ?>
Copy code

2. Current page path

  1. ?>
Copy code

server_port can be selected as needed.

You can also refer to the following articles: What are the php codes to get the complete URL of the current page? php code to get the complete url of the current page



source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!