10 tips for compiling website programs in PHP _ PHP Tutorial

Source: Internet
Author: User
Ten skills for compiling website programs in PHP. 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 is characterized by fast running, stable, and reliable. administrators of more than 3 million internet websites across platforms 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.
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:
Tar-xvf apache_{version}.tar
5. go to the/usr/local/apache _ [version] Directory (or install the compressed file directory in step 4 );
6. enter the following command to prepare for compiling Apache. replace [path] with your own path, for example,/usr/local/apache [version]. now the new value of mod_so has been set, which will allow Apache to use the DSO module;
7. return to the prompt state, type make, and wait for the prompt to return again;
8. run the "make install" command.
Now that Apache has been installed, the system will return to the prompt state. Next we will start to install PHP:
2. use PHP conversation
3. files are our friends
IV. PHP and file system maintenance
5. Rich array functions
6. create dynamic images
7. PHP-based user authentication
8. PHP and COM
9. PHP and Java
10. PHP and XML

Bytes. It features fast running, stable and reliable, and cross-platform...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.