Php compression function (gzcompressgzuncompress) compresses the string
// Example of string compression
$ String =
"Http://bbs.it-home.org is php technical website. This website is personal website.php8848.
Php pop-up error warning function
// ******** The alert box is displayed and jumps to the specified page ******//
Function alert ($ message, $ url = '', $ isAlert = true, $ title = 'hprompt '){
Echo'
Php obtains the id of the inserted mysql data.
Mysql_query ("select max (id) from t1", $ link );
This method is used to obtain the largest value of id, which is indeed the last value. However, when multiple threads are
Restrictions on the size of uploaded php files
How can I solve the limit on the size of specialized files in php? The main purpose is to modify the content in the configuration file php. ini to break through the php file upload size
How to modify the file size limit for PHP + Apache uploads
How can I modify the size limit of uploaded files in php and apache? That is, to modify the restrictions on php file upload. For more information, see.During program migration,
Modify the PHP file size limit
This section describes how to modify the php file size limit. the default file upload size in php is 2 MB. here we will share the specific modification method. For more information, see.1. in php, the
Apache + php file size limit modification method
This section describes how to modify the size limit of uploaded files in apache and php environments. For more information, see.To solve the php file upload size limit, you must not only
How to connect PHPMySQL to the database
$ Con = mysql_connect ("localhost", "peter", "abc123 ");
If (! $ Con)
{
Die ('could not connect: '. mysql_error ());
}
// Some code
?>
Solve phpcsv file import mysql Chinese garbled
When using php to import csv files to the mysql database, Chinese characters are garbled. here is the solution. For more information, see.Many methods are used to read and upload csv files
Create a database and a table in PHPMySQL
// Create a database
$ Con = mysql_connect ("localhost", "peter", "abc123 ");
If (! $ Con)
{
Die ('could not connect: '. mysql_error ());
}
Function for verifying the ID card number in PHP
Function validation_filter_id_card ($ id_card ){
If (strlen ($ id_card) = 18 ){
Return idcard_checksum18 ($ id_card );
} Elseif (strlen ($ id_card) = 15 )){
Simple example of exporting CSV files in php
/**
* Export a csv file. example of the header function
* Edit: bbs.it-home.org
*/
Header ("Cache-Control: public ");
Header ("Pragma:
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