Home >Common Problem >What is the function of url

What is the function of url

silencement
silencementOriginal
2019-05-24 09:12:4047324browse

The function of URL is to identify information resources on the Internet and uniformly address the services provided by the Internet. Through the URL, we can reach any place to find what we need, such as files, databases, images, news, etc.

What is the function of url

URL is the abbreviation of Uniform Resource Loctor, which is a unified resource locator. It is a tool that identifies where there are information resources on the Internet and unifies the services provided by the Internet. Addressing system. Function of URL: Through URL, you can reach any place to find what you need, such as files, databases, images, news groups, etc. It can be said that URL is the address book on the Internet.

URL generally consists of three parts, each part is as follows:

1. Server identifier. The type of server to be accessed can be determined by selecting the server identifier. The server identifier in the URL can include HTTP://, FTP://, GOPHER://, TELNET://, NWES://, etc. They are respectively designated to use Hypertext Transfer Protocol to connect, to use File Transfer Protocol to connect, to connect with the GOPHER server, to connect with the TELNET session, and to connect with the USENET news group.

2. Information resource address. The information resource address is composed of two parts. One is the machine name, which is used to indicate the machine where the resource exists, and the other is the communication port number (port number), which is the communication port number used when connecting. Port is a software identifier used by the Internet to identify specific information services. Its setting range is an integer between 0 and 65535. Generally, the standard port number is used and does not need to be written out.

Non-standard port numbers will be used when special services are required. In this case, they must be written out, such as . Common port numbers for Internet services, such as the standard port number for HTTP is 80, the standard port number for TELNET is 23, the standard port number for FTP is 21, and so on.

3. pathname. The path name is the complete file name of the resource on the machine where it is located. Generally, this option is given only when the user knows where the resource he is looking for is.

The above is the detailed content of What is the function of url. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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