PHP is now widely popular as a programming language, and the use of PHP programs need to build a PHP environment, build PHP Local environment is PHP+APACHE+MYSQL environment, so you can run PHP program on the computer. So, what is the relationship between Apache, PHP, and MySQL in the PHP environment?
Apache
It is the Web server software. Similar products have Microsoft's IIS and so on. The function is to allow a computer to provide WWW service, local environment can be 127.0.0.1 this IP to access the local site.
Php
It is a service-side language interpreter software. After being loaded by Apache software, Apache adds the ability to interpret PHP files so that the server can run PHP programs. The access methods are as follows:
Address/file name. php.
Mysql
It is a small relational database software. It provides database support for a variety of software, and the data stored in the PHP site generally exists in the MYSQL database. Of course, you can also choose other databases, not just MySQL, but usually the "relationship" between MySQL and PHP is very good.
Note: The PHP file must be in the working directory of the Apache configuration. is not the installation directory.
Dreamweaver Visual Web page editing software. A Web site script that can be used to write large parts. such as HTML CSS ASP PHP and so on. But it's only limited to editing code. Provides visual editing for the visual part. It is not possible to run server-side dynamic scripting programs, such as ASP PHP, which require server-side interpretation to run web programs.
Supplemental NOTE: If you are only writing code from the point of view. The system comes with a notepad that can be written. Not necessarily with Dreamweaver. It's good to write CSS HTML. Writing PHP is no different than writing a notepad. You can't see the effect after the run.
PHP Environment: A computer running Apache, and the Apache has loaded PHP. The database is not a required software. If you do not need the database can not be installed. The version number is not important. The new version features a bit more. Security is a bit better.
This is the PHP, Apache, MySQL relationship between the three, understand the relationship between them, learning PHP will be easier oh.