PHP advanced programming skills in Linux are all delivered-Linux Enterprise Application-Linux server application information. The following is a detailed description. Administrators of more than 3 million Internet websites around the world are using PHP, making it one of the most popular server-side scripting languages. It features fast running, stable and reliable, cross-platform, and open source software. Different from the level you use, PHP can be very simple or complex. You can only use it to send HTML table elements, and integrate Java and XML in PHP applications.
If you have a certain understanding of PHP or read some preliminary teaching materials, these skills can expand your understanding of PHP, so that you can master some common and advanced PHP functions.
This article mainly introduces the following Top Ten PHP Advanced Skills: 1. install PHP as a DSO of Apache; 2. Use PHP conversation; 3. Files are our friends; 4. Maintenance of PHP and file systems; 5. Rich Array functions; 6. Creation of dynamic images; 7. PHP-based user authentication; 8. PHP and COM; 9. PHP and Java; 10. PHP and XML.
1. install PHP as a DSO of Apache
PHP is often used with Apache on Linux/Unix platforms. When installing PHP, there are three installation methods available: static mode, dynamic mode (DSO), and CGI binary mode.
Because it is easy to maintain and upgrade, I strongly recommend using DSO to install PHP. For example, if the PHP installed for the first time only supports the database and then you want to install a module that supports encryption, you only need to run "make clean" and add new configuration options, then run "make" and "make install". A new PHP module will be installed in an appropriate location in Apache and then restart Apache without re-compiling Apache.
The following steps will install a brand new Apache and install PHP in DSO mode:
1. obtain the latest Apache source code from the Apache Software Foundation;
2. Put the obtained source code in the/usr/local/or/opt/directory, or any directory you specified;
3rd. Run gunzip' To uncompress the file and get the file suffixed with .tar;
4. Run the following command to install the file in the apache _ [version] directory:
| CODE: tar-xvf apache_?version=.tar |