PHP beginners and AppServ tutorials developed by PHP. 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, that is, HypertextPreprocesso, recently 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
PHP, Hypertext Preprocessor, hyper text 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. its 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. Development tools
The integrated development environment integrates the environment required during software development, 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 combines C, Java, Perl, and PHP self-innovative syntax. 2. PHP can execute dynamic web pages faster than CGI or Perl-dynamic pages. compared with other programming languages, PHP embeds programs into HTML documents for execution, the execution efficiency is much higher than the CGI that generates htmL tags completely. 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 concept product, is still under development.
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 develop and use it by yourself, PHP5.3 has the advantage and is a version worth considering for the deployment 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 are using PHP in apache1 or apache2, you should select the VC6 version. if you are using IIS (Internet Information Services (IIS, Internet Information Services ), is a basic Internet service provided by Microsoft based on 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. Therefore, this software is suitable for beginners PHP developers.
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 ).
Bytes. I have never touched on PHP before. here is an introduction. 1. PHP, that is, Hypertext Preprocesso...