PHP learning notes (1) environment configuration and code debugging

  • 2020-05-07 19:23:57
  • OfStack

1 is configured with PHP environment

1. What is PHP

            PHP (" PHP: Hypertext Preprocessor ", acronym for hypertext preprocessor)

      PHP is an abbreviation of the English hypertext preprocessing language Hypertext Preprocessor. PHP is an HTML embedded language, which is a scripting language embedded in HTML documents that is executed on the server side. The language style is similar to C and is widely used

         


2. Background and advantages of PHP

        PHP development background

        1), created in 1994 by Rasmus Lerdorf, began as a simple Perl language program to count his own website visits.

                    was later rewritten in C language to include access to databases.

        2), Lerdorf released PHP/FI 1.0 and 2.0 in 1995, and added support for mySQL, thus establishing PHP's position in dynamic web development.

        3), as of 1996, there are 15,000 websites using PHP/FI

        4) in 1997, more than 50,000 websites were developed using PHP/FI. The development team joined Zeev Suraski and Andi Gutmans in the same year PHP3 was released.

        5), 200PHP 4.0 came out with many new features.

        6). On 22 May 2000, PHP 4 was released on the basis of Zend Engine 1.0, and PHP 5 was released on 13 July 2004. PHP 5 USES Zend                   generation Zend Engine[5]. PHP includes many new features, such as enhanced object orientation, the introduction of PDO (PHP Data Objects), one access data    

                      library extension function library, and many performance enhancements.

          7), PHP 5 became the only PHP version of PHP under development in 2008. Future PHP 5.3 will include Late static binding and some other features

                 

  advantage there

      1), open source:     open source.

      2), PHP is free:   is free compared to other technologies.

      3), php speed:    

                  is fast to develop, fast to run and fast to learn the technology itself. Embedded HTML: because   PHP can be embedded in the HTML language, it is easier to edit, more practical, and more suitable for beginners than other languages.

        4) strong cross-platform:

Since PHP is a script that runs on the server side, it can run under UNIX, LINUX, WINDOWS.

      5), high efficiency:

                PHP consumes relatively few system resources.

      6), image processing:

Create images dynamically with PHP

7) object oriented:

In php4,php5, the object-oriented aspects have been greatly improved, and php can now be used to develop large business programs.

8) professional concentration;

PHP mainly supports scripting language, which is also the C language.

PHP technology application

      1), pseudo-static and static page generation.

      2), process cache, and database cache.

    3), good support for W3C standard (DIV+CCS)

      4).

      5), distributed

        6), support MVC model

      7), Ajax framework integration (Jquery framework integration)

      8), support for object-oriented programming

2. Configure the PHP debugging environment

    1), install WAMP

The so-called WAMP refers to the PHP network server environment built by installing Apache web server (A), MySQL database (M) and PHP scripting engine (P) under Windows system (W). The WAMP environment is even more convenient and practical. WAMP is a powerful Web application platform.

        WAMP download help Wamp5 http: / / 9. scdx1. crsky. com / 200711 / WAMP5 - v1. 7.4 rar

  2), development tool Zend Studio

        Zend Studio is not free. Zend Studio PHP is an integrated development environment, have powerful professional editing tools and debugging tools, support PHP syntax highlight, support the grammatical function of auto filling, support bookmarks, support functions of code duplication and grammar automatically indent, built a powerful PHP code debugging tools, support for local and remote two debug mode, support for multiple advanced debugging capabilities.      

Zend Studio 8.0.1 official download address (IBM i edition download is not included)

windows version: http: / / downloads zend. com /.. ZendStudio - 8.0.1. msi linux version (32-bit) : http: / / downloads zend... . / ZendStudio - 8.0.1 - x86. tar. gz linux edition (64) : http: / / downloads zend... . ZendStudio - 8.0.1 - x86_64. tar. gz applies to Mac_OS_X DMG installation formats: http: / / downloads zend... . ZendStudio - 8.0.1. dmg

Study notes, understand superficial. For reference only, please understand if not enough)


Related articles: