Windows PHP Development Environment Tutorial (APACHE+PHP+MYSQL) _php tips

Source: Internet
Author: User
Tags install php learn php learn php programming php development environment php programming zend

As a result of changing the computer or reinstall the system often need to rebuild the PHP environment, this simple record of Windows to build a PHP environment process, the specific steps can refer to online data

Preparatory work:

Windows hand-built PHP environment need to download the appropriate software, you need to be aware that the version of Apache and PHP must be consistent (both 32-bit or 64-bit), if the version inconsistency will lead to the integration of Apache and PHP unsuccessful, That is, after modifying the configuration file, start the Apache report as shown in the following figure:

In fact, there is a very detailed description of the http://windows.php.net/download/, the reader can choose the appropriate version according to their own needs

The author downloads the software version as shown in the following illustration:

Installation process:

1. Install Apache

Double-click the installation, which is no different than installing other Windows software

When filling in the server infomation, there is no special rules, as long as the information entered conforms to the format can be

After the installation is complete, the http://localhostis entered in the browser and if the It works! is displayed, the Apache installation is successful.

2. Install PHP

The php-5.3.10-win32-vc9-x86.zip can be extracted to a directory, the author's installation directory is: D:\Software\PHP

3, install MySQL, Mysql-front

4. Integrate Apache+php+mysql

(1) Allow Apache to parse PHP files

(2) Modify the Apache Site Directory

(3) Modify the PHP configuration file, set the specific directory of the PHP expansion pack, open the corresponding library functions, set the time zone

5, testing

To create a new index.php file in the Apache site Directory described above, the code in index.php is as follows:

Copy Code code as follows:
<?php phpinfo ();? >

Enter http://localhost/in the browser address bar, if the page displays the PHP version information then the Apache and PHP integration success

PHP Development Tools

The previous simple description of the PHP environment, as a PHP developer must have a suitable development tool, the market has a variety of powerful PHP development tools, http://www.downcc.com/k/phpkaifa/introduced a number of development tools, Here are two kinds of PHP development tools used by the author

(1) Zend Studio

The software for the charging software, free trial, crack method can refer to http://www.imuum.com/zend-studio12-0-2-key-cracked-registration-key-download.html

The author of this machine installed version: Zend Studio12.0.1

Working space:

Project Overview:

Access Address: http://localhost/Zend-workspaces/test/index.php

(2) eclipsephp Studio

Author of this machine installed version: eclipsephp Studio 4.0

Working space:

Project Overview:

Access Address: http://localhost/EPP-workspaces/test/application/index.php

The installation requires a variety of software to be installed manually, but there are many integrated environments that can simplify these operations

Reference: Build PHP development environment under Windows (APACHE+PHP+MYSQL)

The above is the entire content of this article, I hope that you learn PHP programming help.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.