Generally, it is a PHP. ini configuration problem. Set it again based on the following configuration items, and then restart the server. Try again!
(1) set the extension path
Find the row in extension_dir
; Extension_dir = "./"
Add a line after this line (note that adding a line is not followed)
Extension_dir = "d: \ php \ ext"
D: \ php is the path for installing php. Dll cannot be loaded if the path is incorrect.
(2) Search for extension
Extension = php_mbstring.dll
Extension = php_gd2.dll
Extension = php_mysql.dl
Remove the semicolon before the preceding three items so that these dll files can be loaded when IIS is started.
(3) set the session storage path
Find the row in session. save_path.
; Session. save_path = "N;/path"
Add a line after this line
Session. save_path = "C: \ Windows \ Temp"
Save it to your temporary directory, which can be saved to the Windows temporary directory Temp.
(4) It is worth noting that short_open_tag is Off by default.
That is to say, php cannot use short tags, as shown in <? ?> Required <? Php?>
Short tags are easy to use, and many programs use short tags for writing, such as discuz.
If you do not change short_open_tag to On, it will be difficult to determine the cause. We recommend that you modify it here.
Search
Short_open_tag = Off
Change
Short_open_tag = On
(5) Whether the error display_errors is displayed
For security reasons, display_errors is also Off by default.
That is to say, when debugging, if the php code is incorrect, only one blank page is displayed. The error cause and number of lines are not displayed.
Therefore, debugging is inconvenient. You are advised to modify it as needed.
Search
ReGISter_globals = Off
Change
Register_globals = On
(6) register_globals
It is also Off by default for security reasons.
When register_globals = Off, $ _ POST ['user _ name'] and $ _ POST ['user _ pass'] should be used for receiving the next program.
When register_globals = On, the next program can directly use $ user_name and $ user_pass to accept the value.