Php cleverly obtains server information
$ Fp = fopen ("http: // www. ***. com /***. htm "," r "); // open files under a site in read-only mode
Foreach ($ http_response_header as $ info) // traverse the file information header of $
How does PHP obtain server information in PHP mode? In fact, you only need three lines of code to easily obtain the information about a file on the peer end and the information about the website to which the file belongs. The code is as follows:
Php common functions for obtaining apache server information php code
Common functions of php to obtain APACHE information */$ version = apache_get_version (); // Obtain the APACHE version and assign it to the variable echo "$ version "; // output
How can I obtain server information in PHP mode? In fact, only three sentences are required.CodeThat is, you can easily obtain the information about a file on the peer end and the information about the site to which the file belongs. The Code is as
apache/2.2.15 (CentOS) dav/2 php/5.4.36 Server at 117.40.239.9 Port # College Linux Server sometimes to minimize the need to expose relevant information for server security by controlling Servertokens and serversignature These 2 valves,
Suddenly tidy up the small bits of knowledge .... Deepen the impression:$info=Array( ' Operating system ' =Php_os, ' operating environment ' =$_server["Server_software"], ' host name ' = =$_server[' server_name '], ' web service port ' =$_
Ajax| Server | display
Ajax Hack Hack 13 display server information in text or textarea This hack is about not refreshing the page to display server information.Users can interact with the server component by entering text and without waiting for
Whether it is a pre-survey or regular maintenance patrol, it is frequently necessary to quickly understand the overall general situation of exchange. Too lazy to look at each point in the ECP, and not bother with a single input command, so it took
Reference: https://zhidao.baidu.com/question/621368750657770092.html1. Check the memory size:Cat/proc/meminfo |grep Memtotal2, some other commands and methods to view detailed Linux system information:UNAME-A # Linux System Information command to
1. what I encountered in my project today is that when I call the interface to POST data, the POST data volume is too large, resulting in failure to receive the returned information. 2. I tried Baidu and found that I wanted to set up a header. After
Socket is a transmission protocol that provides asynchronous communication between client servers! Use the fsockopen () function to establish a socket connection. As mentioned above, cURL is a tool for connecting and communicating with various
Google search is popular around the world because it is powerful and can find a lot of useful data in simple steps. However, records of Internet browsing or searching for data are stored in a large database, and law enforcement can use the power to
Server variable $ _ server details:
1. $ _ session ['php _ Self '] -- get the file name of the script being executed
2. $ _ server ['server _ Protocol'] -- name and version of the communication protocol when requesting the page. For example, "HTTP/1.
Description
Returns information about the Internet proxy server used by a computer.
Supported platforms
Windows Server 2003
Yes
Windows XP
Yes
Windows 2000
No
Windows NT 4.0
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.