Home > Backend Development > PHP Tutorial > Ten experience tips for writing website programs in PHP_PHP Tutorial

Ten experience tips for writing website programs in PHP_PHP Tutorial

WBOY
Release: 2016-07-13 17:42:07
Original
785 people have browsed it

PHP is used by administrators of more than 3 million Internet websites around the world, making it one of the most popular server-side scripting languages. It is characterized by fast running speed, stability, reliability, cross-platform, and open source software. Depending on your level of use, PHP can be as simple as it can be as complex, and you can use it just to send HTML table elements, or you can integrate Java and XML into your PHP application.
If you have a certain understanding of PHP or have read some preliminary textbooks, these techniques can expand your knowledge of PHP and enable you to master some common and advanced PHP functions.
1. Install PHP as Apache's DSO
PHP is often used with Apache on Linux/Unix platforms. When installing PHP, there are three installation methods to choose from: static mode, dynamic mode (DSO), CGI binary mode.
I highly recommend installing PHP in DSO mode due to ease of maintenance and upgrades. For example, if the installed PHP only supports databases during the initial installation, and then you want to install modules that support encryption, just run "make clean", add new configuration options, and then run "make" and "make install", one The new PHP module will be installed in the appropriate location in Apache, and Apache will be restarted without recompiling Apache.
The following steps will install a new Apache and install PHP in DSO mode:
1. Obtain the latest version of Apache source code from the Apache Software Foundation;
2. Put the obtained source code in /usr/local/ or /opt/ directory, or any directory you specify;
3. Run Gunzip to decompress the file and get a file with the suffix .tar;
4. Run the following command , install the file into the apache_[version] directory:
tar -xvf apache_[version].tar
5. Enter the /usr/local/apache_[version] directory (or install the compressed file in step 4 Directory);
6. Type the following command to prepare for compiling Apache, replacing [path] with your own path, for example, /usr/local/apache[version], now the new value of mod_so has been set , it will allow Apache to use the DSO module;
7. Type make after returning to the prompt state, and wait to return to the prompt state again;
8. Execute the "make install" command.
At this point, Apache has been installed and the system will return to the prompt state. Next we start to install PHP:
2. Dialogue using PHP itself
3. Files are our friends
4. Maintenance of PHP and file system
5. Rich array functions
6. Creation of dynamic images
7. User authentication based on PHP
8. PHP and COM
9. PHP and Java
10. PHP and XML

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/486085.htmlTechArticleMore than 3 million Internet website administrators around the world are using PHP, making it the most popular server-side script. One of the languages. It is characterized by fast running speed, stability and reliability, and cross-platform...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template