Home >Backend Development >PHP Tutorial >Bad Wolf's PHP Learning Tutorial Day 1_PHP Tutorial
To develop an interest in PHP, first understand the advantages of PHP over other programs. In fact, there are many advantages. Here are the main points.
PHP can do anything, such as collecting form data, generating dynamic web pages, or sending/receiving Cookies. But PHP's capabilities are far beyond this.
asp---------
1. Microsoft platform, spend money to buy it.
2. Lots of loopholes. It is not open source, and the specific contents of the usage of many code runtime environments are not disclosed.
3. Poor performance. Server system.
4. Program writing is not structured.
5. Debugging is not easy. Errors are difficult to correct.
6. Component support is complex.
jsp---------
1. High hardware requirements.
2. Java basics are required.
3. Debugging is not easy. Errors are difficult to correct.
4. Claimed to be the fastest in execution. (Accelerated through compilation, PHP can also be used)
5. The business model of large enterprises is more suitable. (Banks, enterprises.)
php---------
1. Cross-platform (microsoft, linux, unix), cross-web server (IIS, apache)
2. Structured (similar to C), easy to debug.
3. Good performance.
4 .Low hardware requirements.
5. Open source code, few vulnerabilities, and low risks.
6. Supports a wide range of databases.
Adabas D InterBase PostgreSQL dBase FrontBase SQLite Empress mSQL Solid
FilePro (read-only) Direct MS-SQL Sybase Hyperwave MySQL Velocis IBM DB2 ODBC Unix dbm
Informix Oracle (OCI7 and OCI8) Ingres Ovrimos
Others: bbs, message boards, magazines, articles, website machines .You can even...write command line programs and graphical user interfaces. The most important thing is that it doesn't cost any money.
Approximate operating environment for php:
Server environment: apache+mysql+php+phpmyadmin There is a software called appserv.exe that integrates these.
Writing tools used: Macromedia Dreamweaver or EmEditor, etc.
Let’s have a general understanding of the basic ways of writing PHP. PHP’s echo() statement shows that there are about 4 ways of writing:
The most common way to obtain system information
Write another test for beginners: