PHP Learning First----what is PHP?

Source: Internet
Author: User

Don't make any decisions in an impulsive situation

——————————————————————————————————————————————————————----

First, to learn some of the knowledge before PHP

(1) The classification of the site-----divided into static sites and dynamic sites

The main differences look like:

The front desk of the website is provided to the user, backstage is provided to the administrator.

(2) Form of the software

----------------------------------------------------------------------------------------------------------

First, what is PHP

PHP (PHP hypertext Preprocessor), is embedded in HTML, running on the server side of the dynamic scripting programming language.

Second, how the PHP Web page works

This is why, the PHP program needs the support of the server, and the PHP program if you need MySQL, but also need MySQL server.

Third, what is the server?

Simply put: The software that installs the server class in the computer can act as a server.

Iv. how to make their apache+mysql+php work together?

The main thing is to modify each configuration file.

First: Modify the configuration file in Apache

Open the installed Apache folder, go to find conf--single machine into open httpd.conf, fill in the loading area as follows:

The first step : LoadModule php5_module "C:/wamp/php/php5apache2_2.dll"// specify where the module of PHP is located .

description : LoadModule is the loaded command , and Php5_module is the name of the module .

Step Two : specify the extension of PHP to be parsed . PHP

AddType application/x-httpd-php spaces . PHP

Step three: Specify the file directory of PHP

Second: Modify the configuration file in PHP

After the modification, open, remove the two lines, that is, open the MySQL extension.

Also: Specify the path of the plug-in

It is also important to emphasize that PHP and Apache and MySQL environment variables must be configured. are configured in path. Let the operating system help us to find the corresponding file.

To this, window+apache+mysql+php environment even if good, can write program.

Summary: If something is wrong, please correct me.

Another: The earlier of these although very simple, but for beginners still have the challenge, learn programming, urgent, must slowly. Come on!!!

PHP Learning First----what is PHP?

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.