Click here to view the code
Phpexcel_writer_exception with the message "Could not close zip file php://output."
The $objWriter->save ("Php://output") in the Code; Causes the error to be resolved as follows:
/* Resolve Excel2007 Cannot
If you use the CI framework, modify the php.ini file's
display_errors = Off
The output error can not be closed to the page,
Only modify the index.php file in the
define('ENVIRONMENT''production');
The output error to the page can be really shut
PHP when making progress bar, you can use
ob_flush(); flush();Two functions to flush the cache and send the information in the cache to the browser. Note, however, that many servers accumulate around 4k of content to send, so you can fill in spaces (
The wind is coming. Fox
A method rewrite is required because of the use of the sub-table
Error:
Declaration of ... should is compatible with ....
Please use the following method to resolve
Class Model { /** sets the table name * @param
1. Two processes cannot open a session store handle at the same time, for example, two processes cannot session_start () A session ID at the same time, otherwise there will be a risk of deadlock.
2, whether there is no data in the session, call
For the following two-dimensional arrays, it is required to be de-weighed:
$arr = Array (' 0 ' =>array ( ' name ' = ' James ', ' age ' =>30, ), ' 1 ' =>array (
For a long time not to write a blog, not slack, but recently wrote a post article management of the Big module, because PHP and Zend did not learn, so spent about a week, only realized the function of adding and deleting, recently in the Improvement
The PHP debug_backtrace () function generates a BackTrace
The function returns an associative array.
下面是可能返回的元素
function
string
the current function name
Line
Integer
The current line number
Number, mobile phone number, QQ number, URL address legality check
1. Verify that it is an integer
1 function isnumber ($val)2 {3if(ereg $val ) )4returntrue; 5 return false ; 6 }
2. Verify that the phone number is
1 function isphone
This is an improved function of the output array structure to facilitate the display of data isolated from the database.
/** * Array (7) {[0] = = Array (+) {["order_id"] = + string (2) "" "[" Shipping_time " ] = = string (1) "0"
The installation takes security into account and is prepared to place the documentroot in a separate partition, so the logical partition specifically builds a directory for it:/DMNR
To mount the partition, set the/etc/fstab
My development environment is UBUNTU12
1, to the official website Download Zendframe Development package, the latest is: zendframework-1.12.15.tar.gz
After extracting, copy the zf.sh and zf.php files from the bin directory to the/usr/bin
Nginx Cache Configuration
first, set the format of a cache log, you can view the "MISS" and "hit" status in the log
Log_format Cache ' * * * $time _local ' * * * * $upstream _cache_status ' ***cache-control: $upstream
Test Nginx's parsing function on PHP
Here, create a phpinfo.php file under the/usr/local/nginx/html directory, with the following content:
PHP
Phpinfo ();
?>
Then access http://local/index.htmlthrough the browser, by
Once you find a learning tool that uses a top-down approach, what is the best way to learn? I have a controversial point of view: I think it is absolutely necessary for beginners to remember the basics as quickly as possible. As a more advanced
The code is as follows:
/** * @param $string * @param $from starting from 0 ... * @param null $length * @r Eturn String * C_SUBSTR ("Give Me a little", $from =0, 9) >> give me A * C_SUBSTR ("Give Me a little", $from =1, 9) >> I * c_subst R ("Give
Empty (), Is_null (), isset () Truth table (Difference)
1, when the variable is not defined, is_null () and "parameter itself" is not allowed as a parameter to judge, will be reported notice warning error;2, Empty,isset first checks whether the
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