Ec (2); recently, many people have asked me how to use PHP. Let's write a PHP elementary application tutorial. Even if you know nothing about PHP, you can understand it ~~ 1. What is PHP? PHP is a new type of CGI programming language. It is easy to learn and use, and runs fast. It can easily and quickly compile and write powerful functions and run fast, it can also run Web Background programs on Windows, Unix, and Linux platforms at the same time. It has built-in file upload, password authentication, Cookies operations, and emails to script ec (2 ); script
Recently, many people have asked me how to use PHP. Let's write a PHP elementary application tutorial. Even if you know nothing about PHP, you can understand it ~~
1. What is PHP?
PHP is a new type of CGI programming language. It is easy to learn and use, and runs fast. It can easily and quickly compile and write powerful functions and run fast, it can also run Web Background programs on Windows, Unix, and Linux platforms. It has built-in functions such as file upload, password authentication, Cookies operation, email sending and receiving, and dynamic GIF generation, PHP directly provides original connections to many databases, including Oracle, Sybase, S, Mysql, Informix, Dbase, Solid, and Access. It fully supports ODBC interfaces. PHP4.0 provides more web server support, such as Zeus, Netscape Enterprise, and Apache Win32 module.
(The above paragraph was transferred from the Internet. Have you been dizzy ......)
In short, I understand that PHP is a dynamic WEB scripting language. That's easy... for example, all the Forum systems here are php programs.
2. Where can I find the PHP source code?
We certainly cannot expect everyone to write PHP programs independently. As an ordinary Web Page Maker, we can use ready-made PHP programs. Many sites provide free PHP source code downloads.
Among them, the most famous is the Chinese webmaster station (http://www.chinaz.com /). From this type of site, we can find the program source code we need.
3. How to Use the downloaded PHP source code?
After the source code is downloaded, no one knows how to use it. Next I will explain it step by step.
(1) view the code instructions:
Generally, all downloaded programs have readme files, which tell you how to install and use this program. Some programs only need to upload all files for use. Some programs need to run install. php for installation, depending on the specific situation.
(2) There are two ways to debug the program. One is to build a local debugging environment on your machine for debugging, and the other is to upload the program to the Home Page Server for debugging.
Local debugging: apache, php, and mysql are generally used to build a local debugging environment. Since these three software are installed, You need to modify the registry and many other settings. It is too complicated for beginners. I recommend using the phptraid software (:
1) PHP Server Builder for windows 1.3.
Includes:
Apache 2.0.47
PHP 4.3.3
Mysql 4.0.16
PHPMyadmin 2.5.4
Zend Optimizer 2.1.0
Http://www.myferly.com/
: Http://www.myferly.com/download/1.3/window...ws/VM/psb13.exe