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. Not open source, many code operating environment usage details are not disclosed.
3. Poor performance. Server system.
4. Program writing is not structured.
5. It is not easy to debug. Errors are difficult to correct.
6. Component support is much more complex.
jsp---------
1. High hardware requirements.
2. You must have a Java foundation.
3. It is not easy to debug. Errors are not easy to correct.
4. It is said to be the fastest in execution. (Accelerated through compilation, PHP can also be used)
5. It is more suitable for the business model of large enterprises. (Bank, enterprise.)
php---------
1. Cross-platform (microsoft, linux, unix), cross-web server (IIS, apache)
2. Structured (similar to C), debugging Easy.
3. Good performance.
4. Low hardware requirements.
5. Open source code, few loopholes, low risk.
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 hosting. You can even... . Write command line programs. Write graphical user interfaces. The most important thing is that it doesn’t cost money.
The approximate running environment of php:
Server environment: apache+mysql+php+phpmyadmin There is a software called appserv.exe that integrates these.
The writing tools used: Macromedia Dreamweaver or EmEditor, etc.
Get a general understanding of the basic methods of writing php , PHP's echo() statement shows about 4 ways of writing:
The most common way to obtain system information
Write another one for beginners to test:
< ;head>