(1) Writing
You can use Notepad, ultraeidt, phped, and so on ...... Simple text editing software is available.
(2) Running
You need web server IIS or Apache, and then install a PHP on the line, http://www.php.net/to download.
Installation: http://phpe.net /? N = articles & t = 6
Write, editplus is recommended,
The execution efficiency of PHP is obvious to all, which is one of the reasons I like it. To integrate it with MySQL and Apache, which is called a wonderful partner, we can't help but wonder at its efficiency. PHP is also updated very quickly. The latest version php4.3.2rc4 is listed here (there are almost no bugs, and it is estimated that the official version will be available soon after the writing), and the installation process of the latest version mysql4.0.13.
PHP installation files can be directly to the http://www.php.net/download, get for win32.zip package (5.8 m)
MySQL installation files can be directly to the http://www.mysql.com/download, get for win32.zip package
In addition, if you want to experience the combination of Apache and PHP to give up IIS, please go to the http://www.apache.org/download the latest for win31. MSI installation package, the latest version is 2.0.45.
In addition, you can download Zend optimizer to accelerate PHP. Specific accessible http://www.zend.com/
<1> install and configure PHP
1. decompress the PHP compressed package to C: PhP (this path can be used at will, but please modify the path as follows ).
2. Copy all the php4ts. dll and C: phpdlls files under the C: PHP Directory to the Windows system folder, which varies depending on the Windows version.
C: Windowssystem for Windows 9x/me
C: winntsystem32 for Windows NT/2000
C: windowssystem32 for Windows XP/server2003
C: The system disk of your current operating system. If your current operating system is not installed in C: Windows, modify the disk accordingly.
Copy PHP. ini-Dist to C: Windows (XP/2003/9 x/ME) or C: WINNT (2000/NT) and rename it PHP. ini. Open it in notepad and modify the following information:
Search the extension_dir =./line and point its path to the extensions directory under your PHP Directory, for example:
Extension_dir = C: phpextensions
If you want to support more modules, follow these steps. If you don't want to, simply save the php. ini file.
PHP supports many modules, but some DLL files are not free of charge, so they are not released along with the PHP compressed package. However, there are many modules in the DLLs folder, we copied them to the System32 folder just now. Now we can test how many modules it supports. The following are my test results for your reference only. If the XXX. dll module is not supported in the pop-up after installation, you can simply add the semicolon (;) and search:
Windows extensions
; Note that MySQL and ODBC support is now built in, so no DLL is needed for it.
;
The following sections describe the supported extension modules with semicolons. If you want PHP to support a certain module, remove the previous ";". The following is the result of my test, it is normal to remove the comment as follows:
Extension = php_bz2.dll
Extension = php_c2.16.dll
Extension = php_crack.dll
Extension = php_curl.dll
Extension = php_db.dll
Extension = php_dba.dll
Extension = php_dbase.dll
Extension = php_dbx.dll
Extension = php_domxml.dll
Extension = php_exif.dll
Extension = php_fdf.dll
Extension = php_filepro.dll
Extension = php_gd2.dll
Extension = php_gettext.dll
Extension = php_hyperwave.dll
Extension = php_iconv.dll
; Extension = php_ifx.dll
; Extension = php_iisfunc.dll
Extension = php_imap.dll
Extension = php_interbase.dll
Extension = php_java.dll
Extension = php_ldap.dll
Extension = php_mbstring.dll
; Extension = php_mcrypt.dll
Extension = php_mhash.dll
Extension = php_mime_magic.dll
Extension = php_ming.dll
Extension = php_mssql.dll
Extension = php_msql.dll
; Extension = php_oci8.dll
Extension = php_openssl.dll
; Extension = php_oracle.dll
Extension = php_cmd.dll
Extension = php_pgsql.dll
; Extension = php_printer.dll
Extension = php_shmop.dll
Extension = php_snmp.dll
Extension = php_sockets.dll
; Extension = php_sybase_ct.dll
Extension = php_w32api.dll
Extension = php_xmlrpc.dll
Extension = php_cmdt.dll
Extension = php_yaz.dll
Extension = php_zip.dll
After the modification, save PHP. ini and install and configure PHP.
<2> install MySQL
MySQL is relatively independent. This database is very small and cannot be operated directly. It is not as intuitive as access or SQL2000. However, there are already a lot of software that can perform well on it, for example, phpMyAdmin and mysqlcc. These software can be downloaded from the http://www.mysql.com/, which is not detailed here.
After downloading and obtaining the MySQL for win32installation package, open it with winzipand run setup.exe directly. Note that you should select an installation path. Of course, the installation path can be any, but I suggest installing it with PHP and selecting the C: MySQL directory. After the installation is complete, MySQL is complete. For setting users and passwords, you can use the two software mentioned above for management. The description is not continued here. The default username is root and the password is blank.
Usually after the installation of MySQL will automatically start the service, if not started, please run C: MySQLbinmysqld-nt.exe
Configure the httpd. conf file in the conf directory
# How to install the Apache module:
Loadmodule php4_module C:/PHP/SAPI/php4apache2. dll
Addtype application/X-httpd-PHP. PhP4
ScriptAlias/PhP4/"C:/PHP /"
Action application/x-httpd-php4 "/PhP4/php.exe"
Addtype application/x-httpd-php4. php
# Add the default startup document:
Added directoryindex index.html:
Directoryindex index.html index.htm index. php index. php3
# Display apache2 in Chinese by default
# Add:
Addlanguage ZH-CN. cn
Defaultlanguage ZH-CN
# Modify:
Adddefacharcharset ISO-8859-1 ---> adddefaultcharset gb2312
######################################## ###
[Zend]
You can see below:
Zend_optimizer.optimization_level = *
This line,
Change the value after = to 1023, that is, change this line
Zend_optimizer.optimization_level = 1023
######################################## ###########################
Alias/icons/"D:/Apache/icons/"; virtual directory name
<Directory "D:/Apache/icons">; displays all directories
Options indexes Multiviews
AllowOverride none
Order allow, deny
Allow from all
</Directory>
<6> test:
Use NotePad to create a new file, write down the following lines, and save them to the C: apache2htdocs Directory, which is your site and directory named phpinfo. PHP. enter http: // localhost/phpinfo in the browser. PHP will be able to see as much information as possible about PhP.
Code
<? PHP
Phpinfo ();
?>
Note that when you save the file, the file suffix should be. php. (Notepad will automatically add a. txt suffix after the file name, unless you take one of the following measures to avoid this situation .) When you save the file, the system will ask you to specify the file name. In this case, enclose your file name with quotation marks. (For example, "Hello. php ".) Alternatively, you can click the "Save type" drop-down menu in the "Save type" dialog box and change the settings to "all files ". In this way, you do not need to use quotation marks when entering the file name.
The above paragraph from the PHP Chinese manual, more detailed installation information, please download this Chinese manual http://www.php.net/docs.php, which has a variety of different systems installed in detail, but not very intuitive, some optimizations have not been written out yet :)
Below I will provide a few of the software to be used:
PHP
Http://www.php.net
Mysql4.0.13
Http://www.mysql.com
Apache
Http://download.wz.zj.cn/download.asp? Cat1 = nettools & cat2 = homepage & id = 3237.
Zend optimizer:
Http://www.phpe.net /? N = downnow & A = 7 & l = 1
In addition, php4.3.2rc4 contains the pear package, which is not found in php4.3.1. If you have downloaded the package, set the include path in PHP. ini and find the following two lines:
Windows: "path1; path2"
; Include_path = ".:/PHP/shortdes"
To:
Windows: "path1; path2"
Export de_path = "C: phppear"
Save the file. This is the path of the PHP file. You can set multiple file paths. Use.
######################################## #########
C: The disk must be 32-bit, but NTFS cannot. I have tested it! PHP cannot be installed on an NTFS disk.
You can find a partition that is not NTFS, such as D: disk E: disk F: disk and so on.
Go to the ISS home directory-> Configure-> Add-> SAPI/php4isapi. dll in PHP
Which of the following platforms can I use win2003 + php4.23? Apache + php4.23 is fast !!
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.