Input in IE: http://localhost/test.php
The configuration information for PHP appears.
The source of test.php is:
<?php phpinfo ();?>
I think the main issue is the version of PHP.
I'm using someone else's compiled binary zip file (VC6 x86 Thread Safe (2009-oct-18 00:00:00) in http://windows.php.net/snapshots/), Php-5.2-win32-vc6-x86-latest.zip. Can be downloaded from the Http://windows.php.net/downloads/snaps/php-5.2-win32-VC6-x86-latest.zip. The DLL file in this version is very full (at least php5ts.dll, I do not see in the other versions above and below).
Apache server I use is Apache_2.0.63-win32-x86-openssl-0.9.7m.msi, can http://httpd.apache.org/from downloading.
I use PHP as a Web language. PHP can now also weave some applications. This can look at its documentation.
I installed it in accordance with its documentation instructions. This is mainly about PHP's INI file and the Apache conf file
My php.ini is in c:/php, httpd.conf is in the Conf folder under the Apache installation directory, of course.
In httpd.conf I added the following code:
Copy Code code as follows:
......
#
#
LoadModule php5_module "C:/php/php5apache2.dll"
AddType application/x-httpd-php. php
# Configure the path to PHP.ini
Phpinidir "c:/php"
#
#
#
......
Modified in php.ini:
Doc_root = "E:\apache\apache-http\Apache2\htdocs".
Hope to be useful to everyone.