PHP, Apache, MySQL, the relationship between the three

Source: Internet
Author: User
Tags dreamweaver
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.

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.