Nmap memo form: From Discovery to vulnerability exploitation (Part 4)
What is a firewall?A firewall is software or hardware used to control network access. There are two types: 1. Host-Based firewall; 2. Network-based firewall.Host-Based
Pre-defined variablesServer variable: $_serverNote: Used in PHP 4.1.0 and later versions. Previous versions, using the $HTTP _server_vars.$_server is an array that contains such things as the head (headers), Path (paths), and script location
ElementCode Description $_server['php_self'] The file name of the current execution script, which is related to document root. $_server['Gateway_interface'] The version of the CGI specification used by the server. $_server['server_addr'] The IP
1. $ _ SERVER ['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.
3. $ _ SERVER ['request _ time'] -- the timestamp at the
For example, I need to obtain the current URL address.$ Url_this = "http: //". $ _ SERVER ['HTTP _ host']. $ _ SERVER ['php _ SELF '];Echo $ url_this;
Http: // localhost/lu. php
SERVER variable: $ _ SERVERNote: PHP 4.1.0 and later versions are used.
What is Web Authentication
In short, web authentication is a process of verifying the identity of the other party. The most typical method of Web authentication is through the user name and password.
Web authentication can be performed in
$ _ Server ['php _ Self '] # File Name of the script being executed, which is related to document root.$ _ Server ['argv'] # parameters passed to the script.$ _ Server ['argc '] # contains the number of command line parameters passed to the Program (
The business community quickly saw its value. Many companies have established their homepages, used Web to publish messages on the Internet, and used them as interfaces for various services, such as detailed descriptions of customer services,
Variable: $ _ server, used in PHP 4.1.0 and later versions. For earlier versions, use $ http_server_vars
Variable: $ _ ENV, used in PHP 4.1.0 and later versions. For earlier versions, use $ http_env_vars
Variable: $ _ cookie, used in PHP 4.1.0 and
CopyCode The Code is as follows: $ _ server ['HTTP _ accept_language '] // browser Language
$ _ Server ['remote _ ADDR '] // ip address of the current user.
$ _ Server ['remote _ host'] // host name of the current user
$ _ Server ['request _ URI '] /
First, PHP retrieves the URL of the current page:
CopyCode The Code is as follows: // obtain the current Script URL
Function getcururl ()
{
If (! Empty ($ _ server ["request_uri"])
{
$ Scriptname = $ _ server ["request_uri"];
$ Nowurl = $
Http://hi.baidu.com/sungoogle/blog/item/015d19305180869ba8018e68.html
Today, I carefully studied the manual about server variables and wrote a note to help beginners.
I think the red part is more common and important. The blue part is added after
In-depth analysis of the SERVER variable $ _ SERVER:
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
Readers who frequently access the Internet may encounter this situation: when accessing some resources of some websites, a dialog box pops up in the browser asking users and passwords to access resources. This is a technology used for user
The PHP tutorial provides multiple methods to obtain URL address bar parameters:
$ _ Server ["server_port"] // obtain the port
$ _ Server ['HTTP _ host'] // get the domain name or host address$ _ Server ['server _ name'] // get the domain name or
How does one process git http requests based on PHP itself when git creates a server repository? I don't know how github, gitlab, and other products can use the WEB account of the website to perform HTTP authentication and manage project members?
$_server[' php_self ') #当前正在执行脚本的文件名, related to document root.
$_server[' argv '] #传递给该脚本的参数.
$_server[' argc '] #包含传递给程序的命令行参数的个数 (if run in command-line mode).
$_server[' Gateway_interface ') #服务器使用的 the version of the CGI specification. For
When using uiwebview, if HTTP authentication is required for access, the webpage cannot be displayed. The reason is that uiwebview does not detect network settings, such as proxy settings and requires HTTP authentication.
First, let's talk about the
Source: Detailed parameters and descriptions of $_server in PHP$_server[' php_self ') #当前正在执行脚本的文件名, related to document root. $_server[' argv '] #传递给该脚本的参数. $_server[' argc '] #包含传递给程序的命令行参数的个数 (if run in command-line mode). $_server['
$_server[' http_accept_language ']//browser language$_server[' REMOTE_ADDR '//Current user IP.$_server[' remote_host '///Current User host name$_server[' Request_uri ']//url$_server[' remote_port '//port.$_server[' server_name '//name of the server
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.