Abstract: uploading files larger than 8M requires the configuration of PHP to be modified to take effect. But I found a lot of information on the Internet to modify the configuration, but I did not take effect after the modification.
Workaround:
Make a picture upload, dead and alive, and later found to be a problem with the configuration of PHP parameters.
The following summarizes the file upload related to the PHP parameters, Memo ~
All of these parameters are set in
PHP handling of case-sensitive issues is messy, writing code may occasionally problem, so here to summarize.
But I'm not encouraging you to use these rules. We recommend that you always adhere to the "case sensitive" and follow the Uniform Code
Because the PHP process is not multi-threaded, some scenarios for convenience and improve performance, you can use PHP to achieve a multi-process to compensate for this deficiency:
Copy CodeThe code is as follows:
#!/usr/bin/env PHP
$cmds =array (
Read data from all rows in a CSV file at once
Copy CodeThe code is as follows:
$file = fopen (' windows_2011_s.csv ', ' R ');
while ($data = Fgetcsv ($file)) {//reads a row of CSV each time
Print_r ($data); This is an array, to get every data,
Recently, data statistics were calculated using PHP's MONGO extension, which had a timestamp field that was 13 bits long because it was accurate to milliseconds, but because it was stored as a string at the beginning:
Copy CodeThe code is as
Description:Because of the recent work relationship, need to develop a Linux run under the Web application, need to be more popular with some of the PHP framework to do an understanding and evaluation, the following article is the author recently
Required Environment:PHP 5.3.3
Apache 2.2.7
MySQL 5.5.8
Related Documents Download:
Click to downloadUnzip the memcached_1.2.5 document, execute memcached.exe-d under cmd-install
Unzip the Php5.3_vc6_memcachedll document and copy the
Write a verification code class in PHP and encapsulate it.
class Name: validationcode.class.phpThe code is as follows:
Copy CodeThe code is as follows:
Class Validationcode {
Private $width;
Private $height;
Private $codeNum;
Private $image;
Nonsense not much to say on the code
Copy CodeThe code is as follows:
function Curlrequest ($url, $postfield, $referer = ", $cookie =") {
Http://www.jb51.net
$ip = rand (100, 244). '. '. RAND (100, 244). '. '. RAND (100, 244). '. '. RAND (100, 244);
When using PHP to write a page program, I often use the variable handler function to determine the PHP page trailing parameters of a variable value is empty, at the beginning I used to use the empty () function, but found some problems, so instead
The fopen () function is used to open the file in PHP.The first parameter of this function contains the name of the file to be opened, and the second parameter specifies which mode to use to open the file:
Copy CodeThe code is as follows:
$file
PHP unset Global variables can only be destroyed in the actual use of local variables, and can not achieve the purpose of global variables. Let's take a concrete approach to this problem. We hope to help you.
Some functions of the language in PHP
Unable to empty the contents of the folder can only empty the specified link cache
Copy CodeThe code is as follows:
function Clearvarnish ($ip, $url, $host =null) {
$errstr = ";
$errno = ";
$varnist _arr = isset ($host)? $host: C (' varnish_list '
Oracle does not say that Linux is CentOS.
1. Installing httpd (Apache)Yum Install Httpd-y
2. Install PHP, PHP-GD, Php-mcrypt, php-pecl*Yum install php php-gd php-mcrypt php-pecl*-y
3. Installing Oci8PECL Install Oci8Enter the Oracle installation
PHP Session PrincipleWe know that session is a way to keep user session data on the server side, and the corresponding cookie is to keep the user data on the client. HTTP protocol is a stateless protocol, the server after the response has lost the
The use of Array_multisort
first, look at the simplest case. There are two of arrays:$arr 1 = array (1,9,5);
$arr 2 = array (6,2,4);
Array_multisort ($arr 1, $arr 2);
Print_r ($arr 1); The order to get is 1,5,9
Print_r ($arr 2); The order to get is
By setting the Content-type to Application/octet-stream, the dynamically generated content can be downloaded as a file, which we believe will be. Then use the Content-disposition settings to download the file name, this also has a lot of people know
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