How to open the PHP file?
How to open the PHP file? Php full-Simplified Hypertext Preprocessor is named Hypertext Preprocessor in Chinese. It can perform some algorithm operations like c, c ++, java, and perl, and php is mainly used in web
The variables included in PHP $ _ SERVER are global variables, which can be called Super global variables. Below I will give you a detailed explanation of common PHP $ _ SERVER usage, hoping to help you.
Frequently used $ _ SERVER [] Variables
$ _
$_server[' php_self '] will get the result of/test.php/foo.bar. The __FILE__ constant contains the absolute path and file name of the current (for example, the containing) file.If PHP is run as a command line, the variable is not valid until PHP 4.3.
SERVER variable $ _ SERVER details: 1. $ _ SESSION [PHP_SELF] -- get the file name of the currently executing Script 2, $ _ SERVER [SERVER_PROTOCOL] -- the name and version of the communication protocol when requesting the page. For example, HTTP1.0.
Public platform development public platform developer public platform development mode browser HTTP_USER_AGENTAuthor: Fang Times studioOriginal article: http://www.cnblogs.com/txw1958/archive/2013/05/25/weixin-if31-http_user_agent.html
In the
1. $ _ SESSION [PHP_SELF] -- get the file name of the currently executing Script 2, $ _ SERVER [SERVER_PROTOCOL] -- the name and version of the communication protocol when requesting the page. For example, "HTTP1.0 ". 3. $ _ SERVER [REQUEST_TIME] --
PHP gets the path, name, and server path of the running file before the current period
echo "Displays the relative path and file name of the script file: \" ". $_server[" Php_self "]." \"";echo "Displays the CGI script specification used by the
In PHP, The getenv (parameter) function is a function used to obtain environment variables. Different environment variables can be obtained based on different parameters. The details are as follows: "php_self" indicates the file name of the script
PHP $_server variables$_server is an array that contains such things as header information (header), path, and script location (scripts locations). It is a super global variable in PHP, and we can access it directly from anywhere in the PHP program.$
$_server is an array of information, such as header information (header), path, and script location (scripts locations), and so on. The items in this array are created by the WEB server. There is no guarantee that each server will provide all the
In-depth analysis of server variable $_server:
1, $_session[' php_self ']--gets the filename of the currently executing script
2, $_server[' Server_protocol ']--the name and version of the communication protocol when the page is requested. For
What file is the php file?
How does the php file open? PHP full Jane hypertext Preprocessor Chinese name is a hypertext preprocessor, it and C,c++,java,perl can do some algorithmic operations, while PHP is mainly used in Web application development,
My usual $_server[] variable
$_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 variable $_server Detailed:* I think the more common and important, {} Part of my own debugging after adding, easy to understand.* 1, $_session[' php_self ']--gets the filename of the currently executing script2, $_server[' Server_protocol ']-
1.windows IIS +ftp Installation
Start----Control Panel----Add or Remove Programs as shown
The following interface appears click "Add/Remove Windows Component (a)" as shown
The following interface appears
Select Application Server
Click "
Now popular lamp, if you choose Windows Server, then generally choose Iis+asp.net+sql Server (can be referred to as WINS), these configuration is very convenient.But there are some special server configuration, for example: Windows R2 x64 + IIS 7 +
1.windows IIS +ftp Installation"Start"--"control Panel"--"Add or Remove Programs"Click on "Add/Remove Windows Components (a)" When the following interface appearsThe following interface appearsSelect "Application Server"Click "Details" in the
The Windows version of PHP from version 5.2.1 started with the thread safe (thread safe) and None thread safe (NTS, non-thread-safe) of the points, the difference is where? Which one should I use? Here to do a simple introduction The first Windows
For a long time did not write a blog, recently learning PHP, so the environment configuration to share with you.
Software Preparation:
The prepared software is shown in the following illustration.
Apache found 64 drops
What is thread-safe and non-thread safe?Thread safety is the case that there is no data inconsistency in a multithreaded environment, and there is a risk of inconsistent data for non-thread safety.Thread safety controls the read and write of
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.