First, PHP gets the URL of the current page:
Copy the Code code as follows:
Get the current script URLfunction Getcururl (){if (!empty ($_server["Request_uri")){$scriptName = $_server["Request_uri"];$nowurl = $scriptName;}Else{$scriptName =
The difference between get and post:There are 5 differences between get and post methods in form submission.1.get is the data that is fetched from the server, and post is the data sent to the server.2.get is to add the parameter data queue to the
What is HTTP? Hypertext Transfer Protocol (Hypertext Transfer Protocol-HTTP) is a protocol designed to enable clients and servers to communicate smoothly. HTTP works with Request-response protocol (Request-reply protocol) between the client and the
The class that gets the URL information
Using this class, you can obtain the following information about the URL:
-Host
-Path
-Statuscode (eg. 404,200, ...)
-HTTP Version
-Server
-Content Type
-Date
-the whole header string of the URL
Copy
The complete URL management of Web applications includes two aspects. First, when a user requests a specified URL, the application needs to parse it into understandable parameters. Second, the application needs to provide a method to create a URL
class to get URL informationUsing this class, you can get the following information for the URL:-Host-Path-Statuscode (eg. 404,200, ...)-HTTP Version-Server-Content Type-Date-the whole header string of the URL Copy CodeThe code is as follows:/***
This article transferred from: http://blog.csdn.net/chendi1985/article/details/5291773Window.location method Get URLUniform Resource Locator (Uniform Resource Locator, URL)The complete URL consists of the following
Turn around.Assuming the current page full address is: Http://www.test.com:80/aaa/bbb.aspx?id=5&name=kelli"/HTTP" is the protocol name"Www.test.com" is the domain name"80" is the port number"AAA" is the station name."Bbb.aspx" is the page name (file
The first is PHP to get the current page URL:
Copy Code code as follows:
Get the current script URL
function Getcururl ()
{
if (!empty ($_server["Request_uri"]))
{
$scriptName = $_server["Request_uri"];
$nowurl =
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.