PHP beginners and AppServ tutorials for PHP Development

Source: Internet
Author: User
Tags vc9
Recently, I received a project from the school administrator to conduct PHP research and assist in project development. I have never touched on PHP before. Here is an introduction. 1. PHPPHP, HypertextPreprocessor, Hypertext Preprocessor, is a common open source scripting language. Absorbing the features of C, Java and other languages, it is easy to get started and mainly used for web development.

Recently, I received a project from the school administrator to conduct PHP research and assist in project development. I have never touched on PHP before. Here is an introduction. 1. PHP, Hypertext Preprocessor, Hypertext Preprocessor, is a common open source scripting language. Absorbing the features of C, Java and other languages, it is easy to get started and mainly used for web development.

Recently, I received a project from the school administrator for PHP research and auxiliary projects.Development. I have never touched on PHP before.Getting started.

1. PHP

PHP, Hypertext Preprocessor, Hyper Text Preprocessor, is a common open source scripting language. Absorbing the features of C, Java, and other languages,Getting startedSimple, mainly used for webDevelopmentThe file suffix is php.

2. Language Parsing

PHP can quickly execute dynamic web pages (dynamic web pages, that is, URLs are not common forms of static Web pages such as htm, html, shtml, and xml, but are implemented in aspx and ,. asp ,. jsp ,. php ,. perl ,. cgi and other forms are suffixed, and there is a symbolic symbol in the dynamic Web site-"? ".) Compared with other scripting languages, PHP can embed programs into html documents for execution, which is highly efficient. In addition, php can directly access the database to create a dynamic webpage.

3,DevelopmentTools

IntegrationDevelopmentEnvironment, a collection of softwareDevelopmentEnvironment required in the process, including code highlighting, Code Completion, debugging, and version control. Common php IDEs include:

Zend studio: commercial software, based on the Eclipse open-source framework.

Eclipse PDT: Open Source.

4. Features

PHP features include:

1. PHP's unique syntax is a mix of C, Java, Perl, and PHP self-innovative syntaxes.

2. PHP can execute dynamic web pages faster than CGI or Perl-in terms of dynamic pages, compared with other programming languages,

PHP embeds programs into HTML documents for execution. The execution efficiency is much higher than that of CGI that completely generates htmL tags;

PHP has very powerful functions, and all CGI functions can be implemented by PHP.

3. PHP supports almost all popular databases and operating systems.

4. Most importantly, PHP can use C and C ++ for program extension!

5. Version differences

PHP4, too old, does not support OO, has been eliminated; PHP6, or conceptual product, is stillDevelopment.

PHP5 has four main branches: versions earlier than PHP5.2, PHP5.2, PHP5.3, and PHP5.4.

PHP5.2 contains incomplete functions or bugs, and PHP5.4 or later versions are unstable.

Mainstream PHP programs have the best compatibility with PHP5.2. Currently, the latest version of PHP5.2 is 5.2.17.

If you are yourselfDevelopmentYou can use PHP5.3 on your own. It is a version worth considering when deploying a project.

In addition to different version numbers, PHP versions of the same version number are also different, and you need to pay attention when selecting PHP extension.

  • Install: an executable installation package in MSI format.

  • ZIP: Decompress the package. It is no different from the install version. We recommend that you select the ZIP version.

  • DEBUG: end users do not need to worry about it.

  • VC6 and VC9

  • If you use PHP in apache1 or apache2, you should select VC6.

    If you are in IIS (Internet Information Services (IIS, Internet Information Services), it is a basic Internet service provided by Microsoft Based on running Microsoft Windows .) When using PHP, you should select the version of VC9. The version of VC6 is compiled by visual studio6, and the version of VC9 is compiled by Visual Studio 2008, which improves the performance and stability. For PHP of VC9, you need to install Microsoft 2008 C ++ Runtime. Do not use VC9 in apache.

6. PHP installation

To create a website, four major LAMP or WAMP components are required. Therefore, the website cannot be built without the apache server, MySQL database application, PHP (or other scripting languages ). In this way, you must install them separately and configure the environment between them to build website servers as a whole application.

However, there are many installation packages that integrate these necessary components. Here we use AppServ (Other WAMPSERver) to integrate the AMP and do not need to configure a complex environment. So this software is suitableGetting startedPHPDevelopment.

The following describes how to install and use AppServ:

Download AppServ: http://www.drpeng.org/tech/index.php (a personal sharing website for a teacher in our school, which has a lot of good stuff ).

Installation Process: http://jingyan.baidu.com/article/91f5db1bf72ac01c7f05e3a7.html (note that the default installation port to 8080 is more appropriate, also remember password, the username and password used to log on to the database under the apache server are root and the password set by myself ).

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.