Introduction to the PHP Ob_start () function
PHP Ob_start and Ob_end_flush () are the buffered output functions of PHP.
Ob_start ([string output_callback])-Opens the output buffer, all output information is not sent directly to the browser, but is
PHP APC caused by the session can not save the bug and solution
The acceleration effect of APC on php script is obvious, it can Increase the load capacity of PHP-FPM server to 2 times, so in production environment , you need to use APC to
PHP Basic functions
Defining constants
Define (' APPCONFIG ', ' placonfig ');
GET constant
ECHO constant (' APPCONFIG '). " \ n ";
echo APPCONFIG. " \ n ";
Constants cannot be defined two times
Initialize the value of a variable
Ini_set ('
What you should do to escape a pseudo PHP programmer
Become a good PHP programmer, how to do it? What kind of skills should you have to be a PHP programmer? What level of skill do you have? This article lists some things that you should know as a
PHP frame, can't hurt, can't hurt
Since rails has blown a frame of wind, other languages have responded, java,python,scala,php, regardless of static dynamic language has appeared to mimic the framework of rails mode, in which the PHP language
PHP notice:undefined Index Perfect solution
Usually use $_get[' xx '] to obtain the parameter value, if not before the judgment is not passed in the parameter will appear this warning:
PHP notice:undefined Index XXX
Although you can set
PHP Code Execution efficiency
Here is the implementation of some code, although PHP executes quickly, but the mosquitoes are small, always meat bar ~
?
The following is the execution time of some code.
?
The following program execution times $_i =
Phpcms v9 Problems
PHPCMS login always prompt "Verification code input error", clearly did not lose the wrong
Solve
Modify "/caches/configs/system.php"session_storage = ' MySQL 'ForSession_storage = ' Files '
and the domain name in the flow device
PHP uses Curl Proxy
Using PHP's Curl Library is a simple and effective way to capture web pages. You just have to run a foot book, then analyze the web you've crawled, and then you can get the numbers you want in a program way. Whether you want to
Installation and Configuration eaccelerator-0.9.5 acceleration PHP-5.2.1
Operating system: Linux First, install eaccelerator-0.9.5 (also support ZendOptimizer-3.2.2) 1, first install ZendOptimizer-3.2.2 #
PHP Sorting algorithm (INSERT, select, Swap, bubble, fast)
= $i; $j--) {///adjacent two number comparison if ($arr [$j] = 0) && ($iTemp 1) {$left = QuickSort ($left); }//sorted array $new _arr = $left; Put the current array first to the
Small examples of amfphp and PHP interactions
Here to download amfphp for? FLASH8 components, if you use a different version, please select here to download:http://www.adobe.com/products/flashremoting/downloads/components/Install after download,
ThinkPHP2.0 Integration using Smarty templates
Smarty Official website: http://www.smarty.net/downloadHow it's done:1. First go to smarty official online download a smarty, then unzip the package, there will be two folders: Demo and libs. Open the
Efficient way to export xls,csv in PHP
Often encounter need to export data from the database to Excel file, with some open-source class library, such as Phpexcel, it is quite easy to implement, but the support of a lot of data is not good, it is
PHP Installation of PHP environment configuration under Windows platform
Original: http://www.phpiask.com/?p=43 Very good introduction
In the previous two articles of this series: MySQL installation and configuration, Apache installation we
PHP programmers are most prone to make 10 kinds of mistakes
PHP is a great web development language, flexible language, but see the PHP programmers repeating a number of mistakes. I made the following list, listing the 10 errors that PHP
PHP SCA Learning 1
Toss a morning, PHP SCA incredibly even HelloWorld also out, in the unit of Visita, baffled its solution, so night home
On the WIN2003, with the same Apache version, PHP with 5.2.1, incredibly complete success, the following
Some basic functions commonly used in PHP (ii)
11. Function strlen () Gets the number of bytes of the variable
$AA = "A013"
Strlen ($AA); The number of bytes obtained is 4.
12. function substr ()
echo substr (' abcdef ', 1);???? Bcdef
echo substr (
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