When downloading the phpheader function file, you are prompted to save it.
$ Filename = 'path + actual filename ';
// File type
Header ('content-type: application/pdf ');
// Download the display name
Php-fpm configuration file details
This article describes some content about the php-fpm configuration file and configuration options. For more information, see.This section introduces php5.3 built-in php-fpm file, as follows:/usr/local/php/
Analysis on the length of preg_match regular expression matching strings
Ini_set ('pcre. backtrack_limit ', 999999999 );
Note: this parameter is available after php 5.2.0.About: pcre.
A simple example of php reading pure ip database
/*--------------------------------------------------
Ip2address [qqwry. dat]
--------------------------------------------------*/
Class ip {
Var $
Solution to phppdo encoding garbled problem
Mysql_query ("set names utf8 ″);
Therefore, the same method is used. Solve the problem of pdo Chinese garbled characters.
$ Db = new PDO ($ dbconn [
Php Weibo short URL algorithm php code for generating short URLs
// Php generates a short URL
Function code62 ($ x ){
$ Show = '';
While ($ x> 0 ){
$ S = $ x % 62;
If ($ s> 35 ){
$
Modify the PHP file size limit (windows and linux)
This section describes how to modify the limit on the size of php files to be uploaded. This section describes how to modify the limit on php files in windows and linux. For more
Php code for sending emails using smtp
Let's give you a php code for sending mails using smtp. it is simple and practical. if you need it, refer to it. The complete code is as follows.
'Script school', // enter the website name here); $
Example of generating thumbnails in the phpGD Library
Header ("content-type: text/html; charset = gbk ");
Ini_set ("date. timezone", "Asia/chong ");
// Determine whether the file is empty
Analysis of php large file upload problems
This section describes the configuration of uploading large files in php, describes some php Upload parameters, and describes how to upload large files in php. For more information, see.Parameters
Phpexcel import excel to mysql database (example)
2. run insertdb. php on the page.
Session_start ();
Header ("Content-type: text/html; charset: UTF-8 ");
// Global variable
Php imports a large amount of data to mysql (example)
// Fast Mysql big data backup
// Modify the SQL file name, database host name, database user name, password, and database name to be imported
Phpmb_chunk_split function supports wide Character Segmentation
/**
* Split string
* @ Param String $ str the String to be split
* @ Param int $ length the specified length
* @ Param String $ end
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