$ _ 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 (
In the past, I was curious that the website could obtain the IP address of the user accessing the current page. Now I know that the website uses the $ _ server parameter $ _ server ['remote _ ADDR '] in $ _ server.
You can input parameters to the $
$ _ 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 (
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.0 ".
3. $ _ server ['request _ time'
Copy codeThe Code is as follows:/*+ --------------------------------------------------------------------------| B-Check v0.05| ================================================ =| China South 3Http://www.zndown.com| ===================================
There may be some incomplete information, and the complete code is not at the bottom? Php *** CreatedbyPhpStorm. * User: Inhere * Date: 2015227 * Use: (request source) Client information * File: Client. php * namespaceenvironment; *** Client
Some SERVER information is often used in PHP programming. the detailed parameters of $ _ SERVER are sorted out, you can easily use $ _ SERVER ['php _ SELF '] # file name of the script being executed, which is related to document root.
$ _ SERVER
This article provides a detailed analysis of the SERVER variable $ _ SERVER. For more information, see
In-depth analysis of the SERVER variable $ _ SERVER:
1. $ _ SESSION ['php _ SELF '] -- get the file name of the script being executed
2. $ _
This article provides a detailed analysis of PHP's methods for obtaining the current url. if you need a friend, refer to the following, I hope to help you. Today, we will introduce the specific methods for PHP to obtain the function of the current
Use php to obtain the ip address of the client server .? Phpecho current script SERVER host name:. gethostbyaddr ($ _ SERVER [REMOTE_ADDR]). brhr; echo get the IP address of the SERVER where the PHP script (page) is currently running:. $ _
Summary of the basic knowledge of PHP. Some of these PHP concepts are difficult to understand at the beginning. I listed them all in the hope that they could help some people with less thorns on the way forward. 1. variablevariables.
1. variable
I cannot understand the number of layers of PHP code generation. the number of layers generated now has several layers. [after the directory is generated, it is generated again in the subdirectory, for example, if ABC is generated, then def ghi is
Understand global variables in PHP and global variables. A comprehensive understanding of global variables in PHP, a comprehensive understanding of global variables in PHP, pre-defined several Super global variables (superglobals), which means that
Php built-in function examples
Strtolower ()
Strtoupper ()
Ucfirst ()
Ucword ()
Text html tag processing function
Nl2br ()Htmllentities ()Htmlspecialchars ()Stripslashes ()Strip_tags ()Number_format ()Strrev ()Md5 ()
// Convert to lowercase$
Various PHP exception and error interception methods and alarm when a fatal error occurs, php interception. PHP intercepts various exceptions and errors and generates alarms when fatal errors occur. in daily development, most people enable the
$ _ SERVER [& amp; #39; PHP_SELF & amp; #39;] # file name of the script being executed, which is related to documentroot. $ _ SERVER [& amp; #39; argv & amp; #39;] # parameters passed to the script. $ _ SERVER [& amp; #39; argc & amp; #39;] #
Hello, my audience, Hello! hello, everyone! welcome to the IT program Lecture Hall of the story about underpants. today I will share with you a little bit of knowledge.
Is the interaction between the frontend and the backend.
There are two
This section describes the predefined php variables that are frequently used in php learning. you can use predefined variables to obtain information about user sessions, operating system environments, and local operating system environments.
This
$ _ SERVER usage, PHP global variables, PHP environment variables, and PHP System Constants
In PHP website development, PHP is sometimes used to obtain server information. to meet the website's needs, you often need to set and apply the PHP
Echo "complete set of system default variable commands ";Echo$ _ Server ['php _ Self ']. " the file name of the script being executed, which is related to document root. ",$ _ Server ['argv']. " parameters passed to the script ",$ _ Server ['argc
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.