Graphics and text detailed PHP environment to build tutorials _php Example

Source: Internet
Author: User
Tags php language php and mysql php development environment zend

Objective

PHP originated in 1995, developed by Rasmus Lerdorf. By now, PHP has gone through decades of washing, becoming one of the most popular scripting languages in the world. Since PHP5 is an object-oriented, fully cross-platform, new Web development language, it is practical to consider from a developer's perspective or from an economic standpoint. PHP language structure is simple, easy to get started, many functions can be achieved with only one function. Many organizations have introduced new technologies such as IDE Tools for PHP development and Zend search engines.

Overview What is PHP

PHP (hypertext preprocessor, hypertext preprocessor) is a server, cross-platform, HTML embedded scripting language, its unique syntax mixed with the C language, Java language and Perl language features, is a widely used open source multi-purpose scripting language, Especially suitable for web development.
PHP is b/s (browser/server, browser/server) architecture, belonging to the three-tier structure. After the server starts, the user can not use the client software, only uses the browser to be able to access, both maintains the graphical user interface, but also greatly reduces the application maintenance quantity.

The advantages of PHP language

PHP originated from free software, and open source, the use of PHP for Web application development has the following advantages.

High Security: PHP is open source software, everyone can see all the source code of PHP, the program code and Apache compiled together to make its security settings more flexible. PHP has a proven security performance.

Cross-platform features: PHP supports almost all operating system platforms and supports a variety of Web servers, such as Apache, IIS, and so on.

support a wide range of databases: can manipulate a variety of mainstream and non-mainstream database, such as MySQL, Access, SQL Server, Oracle, DB2, etc., where PHP and MySQL are the best combination, their combination can be run across the platform.

Ease of learning: PHP embedded in the HTML language, mainly scripting language, built-in rich functions, simple syntax, easy to write, convenient for readers to learn and master.

fast execution: less system resources, faster code execution.

Free: in the popular enterprise application lamp platform, Linux, Apache, MySQL, PHP are free software, this open source free frame structure can save a lot of money for the website operators.

Templating: The implementation of program logic and user interface separation.

supports object-oriented and process: Two development styles that support object-oriented and process, and can be backward compatible.

Built-in Zend Acceleration engine, stable and fast performance.

New characteristics of PHP5

• Constructors and refactoring functions.

• A reference to an object.

• Cloning of objects.

• Private, public, and protected mode in the object.

Interface

• Abstract class.

__call.

__set and __get.

• Static members.

Click here to view the PHP Chinese manual

Using the Appserv combo pack under Windows

Combination package, is the Apache, PHP, MySQL and other server software and tools installed after the package processing. Developers can use the configured suite as long as they are uncompressed to the local hard drive without further configuration. The combination package realizes the fast construction of PHP development environment. For programmers who just started learning PHP, it is recommended that you build a PHP development environment. Although the package in the flexibility of a lot of difference, but its simple installation, faster, stable operation, therefore, more suitable for beginners to use.
There are many kinds of packs that are popular on the Internet, 3 kinds of packages are recommended here: easyphp, Appserv and XAMPP. Novice, it is recommended to use easyphp or Appserv, and xampp more complex.

Click to download Appserv package:

The following figure:

Appser Integrated installation package Set-up

1, double-click the Appserv file, open the following image to start the page:

2. Click the Next button to open the Appserv installation Protocol page as shown in the following illustration:

3. Click the I agree button to open the page shown in the following image. In this page you can set the Appserv installation path (the default installation path is generally c:\AppServ), after the Appserv installation is complete, Apache, MySQL, PHP will be stored in the form of subdirectories to the directory:

4. Click the Next button to open the page shown in the following image, where you can select the programs and components to install (default is all selected):

5. Click the Next button to open the page shown in the following image, which mainly sets the port number of Apache:

The Apache port number setting is critical, and it is directly related to whether the Apache server can start successfully. If the 80 port in this machine is occupied by IIS or thunder, then the server can not be configured by using port 80. You can fix the problem by modifying the port number here, or by modifying the port number of IIS or thunder.

6, click the Next button, open the following image, this page is mainly for the MySQL database root user login password and set the character set, here set the character set to

"GB2312 Simplified Chinese" indicates that the MySQL database's character set will be in Simplified Chinese form:

7, click the Install button to start the installation, the following figure:

8, the following image is the completion of the installation of the interface:

After the Appserv is installed, the entire directory is installed by default under the "C:appserv" path, which contains several subdirectories:

Open the browser, in the Address bar, enter "http://localhost/[you set the port number, if it is 80 do not need to fill out]", if you open the following figure, Appserv installation success:

With the development of PHP, a lot of good development tools have emerged. Find a suitable tool, not only can speed up learning progress, but also in the future development process in time to find problems, less detours, we choose the development tool is Dreamweaver. For detailed project creation please refer to the information on the Internet.

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.