1. Install IIS and install the CGI role;2. Install the PHP Manager IIS extension;3, install PHP;4, configure PHP manager, add php php-cgi.exe execution path;5, download the MySQL Community MSI installation version, just install the server module,
There are many environments running PHP, and under Windows there are apache+php+mysql under Apache+php+mysql and Iis+php+mysql,linux. The latter has no choice but to have more.
We usually study and work is still used in the Windows system, when the
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, PHP entry threshold is
$_server is an array of information, such as header information (header), path, script location (scripts locations), and so on. The items in this array are created by Web server. There is no guarantee that every server will provide all the items,
Used to use Apache, because the job needs, to configure the PHP environment of IIS, the Internet to find some information, a bit on the configuration, in fact, with the experience of Apache+php+mysql, this is easy to understand.
now The iron is
Configure requirements
Operating System: Windows7 (x32/x64), windows2008
IIS version:7.0
PHP Version:7.0.6 and above
MySQL version:5.7.12 and above
First step: Install IIS
Note : Starting with the IIS 7+php 5.5 version, 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"The file name of the script being
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"
The file name of the script being
For pages that require authentication, it is best to use the apache server for authentication. However, the interface for apache server authentication is not user-friendly. In addition, not all cases can be verified using the apache server, such as
Installing iis on a windows Server is much better than installing apache. After my test, I will introduce how to install iis6 + php + mysql on a windows server.
I used apache in the past. Due to work needs, I had to configure the php environment of
This article introduces the usage of various parameters of $ _ SERVER environment variables. For more information, see this article.
$ _ SERVER ['php _ SELF ']: relative to the path of the website root directory and the PHP program name, it is
SERVER variables $ _ SERVER summary:
$ _ SESSION ['php _ SELF '] -- get the file name of the script being executed.
$ _ SERVER ['server _ Protocol'] -- name and version of the communication PROTOCOL used to request the page. For example, "HTTP/
In PHP, the getenv (parameter) function is a function to get environment variables, depending on the parameters available to obtain different environment variables, as follows:"Php_self"The file name of the currently executing script, which is
Cause: although I have been working in Ubuntu, I suddenly found that dreamweaver had the wordpress code prompt function a few days ago, which made the wolf feel at ease, so I plan to build the iis php environment on Windows 7, which is used as a
php URL Parts Get methods (global variables), the main introduction of the PHP global variable $_server usage , the need for friends, you can refer to the next.
1, $_session[' php_self ')-Gets the currently executingthe file name of the script2,
This article provides a detailed analysis of the SERVER variable $ _ SERVER. For more information, see
This article provides a detailed analysis of the SERVER variable $ _ SERVER. For more information, see
In-depth analysis of the SERVER
The preferred method for php to obtain external variables is to use the hyperglobal variables mentioned below. Prior to this, people were either dependent on register_globals or long pre-defined PHP array ($ HTTP _ * _ VARS ). From PHP5.0.0, PHP
Php pre-defined variable help (with instance ). From php4.1.0, the preferred method for getting external variables is to use the Superglobal variables mentioned below. Prior to this, people were either dependent on register_globals, or long
How can I configure the php web server? httpd. conf: I got an open-source php Project. I used the iis + php server to configure the project. I didn't set the permissions. I had to make a mess, but it was okay, however, the dialog box anerroroccurred,
Php server variable $ _ SERVER introduction. SERVER variable $ _ SERVER Summary: $ _ SESSION [PHP_SELF] -- get the file name of the currently executing script. $ _ SERVER [SERVER_PROTOCOL] -- Name of the communication protocol and SERVER variable on
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.