The installation of Apache 2.0.48 and has an article on the PHP4 online. I am here. It is easy to see it.
Download the Apache 2.0.48 program from www.apache.org to support Win2K Pro. So it is very convenient, all the way next is fine.
Download two programs for PHP4 from www.php.net, *** install.exe and *** Win32.zip are started to be installed.
First pick Apache and then decompress the SAPI directory in the directory installed in *** install.exe in *** Win32.zip. Copy the php4ts.dll file in the *** install.exe installation directory to the C: / WinNT / System32 directory.
Let's modify the httpd.conf file below.
# Loadingmodule foo_module modules / mod_foo.so
There are still many, I have always found the last line:
#LoadModule SSL_Module Modules / Mod_ssl.so
The last line is the last line of the list, after which it will be added below:
LoadModule PHP4_MODULE C: /PHP/SAPI/php4apache2.dll
Find
AddType Application / X-httpd-php .php .phtml .php3 .php4 addtype application / x-httpd-php-source .phps
You can save the file later, just re-run apache from the Start-The Program menu.
See the success of the test page. It is best to have Chinese characters, so you can see if Chinese display is feasible. :)
I can't see eight or nine.
-------------------
php $ browser = getenv ("http_user_Agent");?>
you are using the php echo ($ browser);?> Web browser. p> php $ title = "browser details" ;?>
-------------------
Save the above code into a * .php file. Put in
F: / Program Files / Apache Group / Apache2 / HTDOCS
in. This is my web directory.
How to display Chinese?
I have modified the following line in the httpd.conf file. The original content can't remember, that is, GB2312 is later changed. Search the previous field is fine.
AdddefaultCharset GB2312
After this is completed, if I write
It is possible to display Chinese, so pay attention to it, it may have a good phenomenon appropriately.
Ok, I wish you all a smooth.
WieDe288
2004-3-14 20:27