Preach Wisdom Blog PHP
Recently self-taught PHP, books do not look down, watch the video. It feels good to preach wisdom blog, but there is no supporting notes, there is in the wisdom of the blog training PHP did not, which kind of people give me
Sort problems after count statistics
$sql = $empire->query ("select Userid,username from {$dbtbpre}enewsmember where groupid=1 and checked=1");
while ($ur = $empire->fetch ($sql))
{
$num = $empire->gettotal ("SELECT count (*) as total from
Phpexcel reading Excel files
????? The previous blog post has done a brief summary of the Phpexcel export Excel file, and now he reads Excel to do the following summary. (The amount of data will not be very large can be used in the web to read
PHP save remote picture to Local
To display a remote picture:
?
Header (' content-type:image/jpg '); Echo file_get_contents ("Http://www.baidu.com/img/baidu_logo.gif");?>
?
First type: precise
?
': ' false ';
?
The second type: Extract
Skills and qualities of a senior PHP engineer
What skills should a PHP senior engineer have?
?
The so-called engineer, engineering two words, not only is coder, is not all programmer, engineer refers to start from the project, the completion of
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 ('
There is a problem calling the MYSQLI function, the environment has been configured.
$mysqli =new mysqli ("localhost", "root", "12345", "student");
$query = "SELECT * from person";
$result = $mysqli->query ("$query");
if ($result) {
while ($obj = $
To find 2 words of the same different phrase participle (to find algorithm ideas)
Statement 1 "CSDN Forum is a very good forum"
Statement 2 "CSDN is a nice jar."
The following results are obtained after the same
Csdn=>2
Forum =>2
is a =>2
Very =>1
PHP numbers or string completion
php string autofill, auto-completion .
?
Method One:
Definition and usage
The sprintf () function writes a formatted string to a variable.
?
Grammar
sprintf (format,arg1,arg2,arg++)?
Parameter
PHP_ Error Resolution _sessioin
Having problems writing your shopping cart,
?
?
Fatal Error: Dangdangservice::addcartitem () [Dangdangservice.addcartitem]: The script tried to execute a method or access a property of a incomplete object. Please
Phpize Adding PHP Modules
What does Phpize do?
Phpize is used to extend the PHP extension module, through the phpize can build PHP plug-in module
?
When are we going to use phpize?
When we install PHP:
'./configure '--prefix=/usr/local/php '--with-
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 =
Analysis of pseudo-static resolution of PHP URL
1, we say the URL map it?? General URL Mapping There are two ways, one is through mod_rewrite implementation, this online teaching materials a lot I don't say much. Another is the simulation in the
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 #
Memcache Storing PHP session
1. Modify the configuration file and set the global settings in php.ini:
Session.save_handler = Memcachesession.save_path = "tcp://127.0.0.1:11211"Or a. htaccess in a directory:
Php_value Session.save_handler "Memcache"
PHP __call () and Call_user_func_array () understanding
1. Mixed __call (string name, array arguments)
The Magic Method __call () allows to capture invocation of non existing methods. That's the __call () can be used to implement user defined
How to make a page jump after PHP transaction processing
I use the Smarty template, in the middle need a transaction processing, but also want to insert two data database, and must be successful success, failure failed.
I started with mysql_query (
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