Introduction to PHP and Appserv tutorials for PHP development

Source: Internet
Author: User
Tags html tags iis include php and version vc9 versions mysql database

Recently received a program to do a teacher's project, doing PHP research and ancillary project development. Previously, no contact with PHP, here to do an understanding to get started.

1, PHP

PHP, hypertext preprocessor, hypertext preprocessor, a general-purpose 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 quickly execute Dynamic Web pages (Dynamic Web pages, which are not common forms of static Web pages such as HTM, HTML, shtml, XML, etc., but are suffixes in the form of aspx,. asp,. jsp,. PHP,. Perl,. CGI, and so on. And in the Dynamic Web site has a symbolic symbol-"?". PHP is more efficient at embedding programs into HTML documents than any other scripting language can do. and PHP can directly access the database, participate in Dynamic Web pages.

3. Development tools

Integrated development Environment, a collection of software development process needs of the environment, including code highlighting, code completion, debugging, 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 with its own innovative syntax. 2. PHP can perform dynamic Web pages faster than CGI or perl--dynamic pages, in contrast to other programming languages, PHP embeds programs in HTML documents and executes more efficiently than CGI, which generates HTML tags; PHP has a very powerful function, All CGI functionality can be implemented in PHP. 3. PHP supports almost all popular databases and operating systems. 4. The most important thing is that PHP can use C, C + + to expand the program!

5, Version Difference

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

PHP5 's moderators have 4 main branches: PHP5.2 Previous versions, PHP5.2, PHP5.3, and PHP5.4 later versions.

Where PHP5.2, previous versions are incomplete or bug;php5.4 later versions are not used in a stable.

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

If you are developing your own use, PHP5.3 has an advantage and is a worthy version of the deployment project.

In addition to the version number, the same version of the PHP version is also different, and in the selection of PHP extensions to be aware of.
  • Install version: executable MSI format installation package.
  • Zip Version: Decompression can be used. There is no difference from the install version. It is recommended that you select a zip version.
  • Debug Version: End users don't care.
  • VC6 and VC9
  • 6, PHP installation

    As a result of the production site, need 4 large lamp or WAMP, can not be separated from the Apache server build, MySQL database application, PHP (or other scripting language). They need to be installed separately and able to configure their environment to build a Web server as a whole application.

    But there are now a lot of installation packages that integrate these necessary components, with Appserv, (other wampserver, etc.) integrated into the amp and without the need to configure a complex environment. So this software is very suitable for beginners PHP developers to use. The installation and use of Appserv is described below

    :

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

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




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.