PHP Introductory knowledge and PHP Development Appserv Tutorial _php Tutorial

Source: Internet
Author: User
Tags vc9 microsoft c
Recently received a project by the hospital to do PHP research and support project development. Previously, there was no contact with PHP, here to get an idea of getting started.

1. PHP

PHP, hypertext preprocessor, hypertext preprocessor, a common open source scripting language. Absorb C, Java and other language features, easy to get started, mainly for web development, its file suffix is PHP.

2. Language analysis

PHP can execute Dynamic Web pages quickly (Dynamic Web pages, that is, URLs are not common forms of static Web pages such as HTM, HTML, shtml, XML, etc.), but instead are suffixes in the form of aspx,. asp,. jsp,. PHP,. Perl,. CGI, etc. And in the Dynamic Web site URL has an iconic symbol-"?". PHP can be implemented in HTML documents rather than other scripting languages, and execution is highly efficient. and PHP can directly access the database, participate in Dynamic Web page.

3. Development tools

Integrated development environment, which integrates the environment required in the software development process, including code highlighting, code completion, debugging, and version control. Common PHP Ides include the following:

Zend Studio: Business software, based on the Eclipse Open source framework.

Eclipse PDT: Open source.

4. Characteristics

PHP features include: 1. PHP's unique syntax mixes C, Java, Perl, and PHP's self-innovative syntax. 2. PHP can be faster than CGI or perl to perform dynamic pages-dynamic pages, compared to other programming languages, PHP is to embed the program into the HTML document to execute, the efficiency of the implementation of the full HTML markup is more efficient than CGI; PHP has a very powerful function, All CGI features PHP can be implemented. 3. PHP supports almost all popular databases as well as the operating system. 4. The most important thing is that PHP can be used in C, C + + program extension!

5. Version differences

PHP4, too old, not support OO, has been eliminated, PHP6, or concept products, is still under development.

PHP5 's moderator has 4 branches: PHP5.2 Previous version, PHP5.2, PHP5.3, PHP5.4 later.

Where PHP5.2, the previous version of the function is incomplete or bug;php5.4 later version of the use of instability.

Mainstream PHP programs for PHP5.2 compatibility Best, the current PHP5.2 is the latest version is 5.2.17.

If you are developing your own use, PHP5.3 has the advantage of being a version of the deployment project that is worth considering.

In addition to the version number, the same version number of the PHP version is also different, and in the choice of PHP extension should be noted.
  • Install version: an executable MSI format installation package.
  • Zip version: Unzip can be used. No difference from the install version. We recommend that you select the zip version.
  • Debug Version: End users don't need to care.
  • VC6 and VC9
  • If you are using PHP under Apache1 or apache2, you should choose the version of VC6 if you are in IIS (Internet Information Services (IIS, Internet Information Service), which is provided by Microsoft Corporation based on running Microsoft Basic Internet Services for Windows. Using PHP should choose VC9 version, VC6 version is compiled with Visual Studio6, VC9 is compiled with Visual Studio 2008, and improves performance and stability. The VC9 version of PHP requires you to install the Microsoft C + + Runtime. Do not use the VC9 version under Apache.

    6. PHP Installation

    Because the production site, need 4 big lamp or WAMP, can not be separated from Apache server Building, MySQL database application, PHP (or other scripting language). This requires a separate installation, and the ability to configure the environment between them can be used as a whole to build a Web server.

    But now there are many installation packages that integrate these necessary components, using Appserv, (other wampserver, etc.) to integrate the AMP, and without the need to configure a complex environment. So this software is good for beginners PHP developers to use.

    The following describes the installation and use of Appserv:

    Download appserv:http://www.drpeng.org/tech/index.php (a personal sharing website of a teacher in our school, there are a lot of good things in it).

    Installation process: http://jingyan.baidu.com/article/ 91f5db1bf72ac01c7f05e3a7.html (Note that the default installation port to 8080 is more appropriate, in addition to keep in mind that password, back to the Apache server under the database login username and password is the root and their own set of password).


    http://www.bkjia.com/PHPjc/755764.html www.bkjia.com true http://www.bkjia.com/PHPjc/755764.html techarticle recently received a project by the hospital to do PHP research and support project development. Previously, there was no contact with PHP, here to get an idea of getting started. 1, php PHP, that is hypertext Preprocesso ...

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.