How to configure the apachephp environment in linux. 1. install Apache
Copy httpd-2.2.4.tar.gz to the/usr/local/src directory.
Tar-zxvf httpd-2.2.4.tar.gz
Cd httpd-2.2.4
. /Configure -- prefix =/usr/local/apache2 -- enable-so --
As a server-side scripting language, PHP is fully competent for tasks such as simple writing or complex dynamic web pages. But this is not always the case. sometimes, to implement a function, you must use an external program (or a command) of the
Mb_convert_encoding is used to convert the encoding. I have never understood the concept of program encoding, but now it seems a bit open. However, the English language generally does not have encoding problems. only Chinese data can have this
When writing a program, developers usually translate the operation logic that has been designed or conceived directly in programming languages. About the Author
Wang Dandan, a software engineer at IBM China system and technology center, has been
The OutputControl function allows you to control the output of data in the script. It is very useful, especially when you want to output the file header after the data has been output. The output control function does not affect the header
Php is popular recently, so more and more friends are learning php. here we will sort out some database operations. For more information, see.
1. create a database table:
The code is as follows:
Create database club;Create table member (Id int (11
Php source code encryption is modeled after the micro-shield PHP encryption expert (PHPCodeLock). For more information, see.
The code is as follows:
Function T_rndstr ($ length = "") {// returns a random string.$ Str =
Image processing: the implementation of watermarking and thumbnails (custom functions: watermark and thumbnail) code is a bit long, but not complex. Don't talk nonsense. paste the code:
The code is as follows:
/**********************************
A few days ago, when I read my company interview questions, I saw such questions. some functions can still be remembered. today I just checked the manual and recorded it here.
The code is as follows:
Ini_set ("safe_mode", true );?>
Table 42-2.
I often encounter the need to export data from a database to an Excel file. using some open-source class libraries, such as PHPExcel, is indeed easy to implement, but it does not support a lot of data, it is easy to reach the PHP memory usage limit.
10 advanced PHP skills to improve php efficiency.
1. use an SQL injection memo formThe basic principle is never to trust the data submitted by users.
Another rule is to escape the data when you send or store it ).
It can be summarized as: filter
PHP uses the shell background to run the PHP script and obtain the ProcessID code of the script. For more information about php, see.
The code is as follows:
$ Command = '/usr/bin/php/pub/www/u111/job/Crondo/auto_collector.php &';$ Process =
The array_keys () function returns a new array containing all the key names in the array. If the second parameter is provided, only the key name with the specified key value is returned.
Array_keys () definition and usageThe array_keys () function
The usage of Smarty-related considerations and several ways to share access variables, you can refer to the need of friends. $ Tpl = new Smarty (); // create a new smarty object. what I use is
Smarty-1, 3.1.6Version
1. set the path to the smarty
Now everyone has countless accounts and passwords, which cannot be remembered. The principle is to complete authentication through the mail server pop service, or use SMTP, the addition of SSL has enhanced security. now everyone has countless
The description of ob_flushflush in the manual is to refresh the output buffer and must be used together. Therefore, many people may be confused that the description of ob_flush/flush in the manual is to refresh the output buffer, it also needs to
OracleFaq (how to change the column name and sequence of the table in ORACLE). If you need to reprint it, please indicate the source!
Anyone who has used ORACLE knows that it is very cumbersome to change the column name and sequence of tables in
When writing php programs, error handling is an important part. If the program lacks the error detection code, it looks unprofessional and opens the door for security risks. for example:
The code is as follows:
$ A = fopen('test.txt ', 'r ');//
This article introduces the usage of Content-disposition in phpheader in detail. if you need to know the header usage, refer to Content-disposition as an extension of the MIME protocol, the MIME protocol indicates how the MIME user agent displays
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