Have you ever wondered how the most Earth-like projects can be copied quickly and changed into a new group purchase project?
or edit an old project and try to save him as a new project instead of saving it,
Look at the red section
Specific
Can be set in display
$smarty->display ("Demo.tpl", $_server[request_uri]) to implement a template with multiple caches.
Since the file has been cached, we can go to cache files, do not loop to execute the connection database, query. To judge by a
Due to the working relationship, the study of MongoDB can only be abandoned temporarily. began to study phpcms.
So far I have basically completed the development of the module. Take advantage of the weekend and come here to make a summary. I found
Form page
Copy CodeThe code is as follows:
User Information
Session_Start ();
function P ($arr) {
echo "
echo "";
}
P ($_session);
P ($_cookie);
?>
Login Page
Copy CodeThe code is as follows:
function P ($arr) {
echo "
echo
First page of pagination
Copy CodeThe code is as follows:
Kung Fu Martial Arts sub page
jquery Implements $.ajax Paging
ID
name
author
Publishing House
ISBN number
type
Price
Parameter filtering
Filter cat_id=2$CL->setfilter ("cat_id", Array (2));Search only in sub-forums with IDs 1, 3, 7$CL->setfilter ("forum_id", Array (1,3,7));Range filteringFilter publish time is today, parameter is int timestamp$CL->setfilterrange (
Scripts often die, and are not always so good-looking. We don't want to show the user a fatal error, or a blank page (in case display_errors is set to OFF). There is a function called Register_shutdown_function in PHP that lets us set up another
Factory mode: By the factory class according to the parameters of the decision to create an example of which production classFactory class: A method class that is designed to create other objects. That is, on demand, incoming parameters to select,
Copy CodeThe code is as follows:
$example = ++$_cookie[' example ');
else $example = 1;
Setcookie ("Example", $example, Time () +54000);
?>
Copy CodeThe code is as follows:
A simple cookie counter
Define and use the Trigger_error () function to create a user-defined error message.
Trigger_error () is used to trigger an error message under user-specified conditions. It is used in conjunction with the built-in error handler or with a
Previously written programs have been avoiding this problem, tag what is required to use the program's self-input, for some lazy people and for the experience of the program, it is hoped to have automatic generation of article keywords, automatic
1. Operate the implementation according to $_server[' Path_info ').
For example, your site's address is http://127.0.0.1/show_new.php/look-id-1.shtml.
You echo $_server[' Path_info ' come out of the results will be/look-id-1.shtml see this I think
Before writing the trigonometric curve dynamically with ActionScript, in fact, the output trigonometric curve of PHP is very simple.
Copy CodeThe code is as follows:
Define ("Max_width_pixel", 600);
Define ("Max_height_pixel", 240);
Send header
Recently studied the CI framework, found that the framework of the routing function under Nginx problems, reported 404 errors, and later on-line search information,
Discover the need to turn on path_info. After nginx7.16 seems to support the
I. Increase the time limit for timeoutsNote here: Set_time_limit only sets the time-out for your PHP program, not the time-out for the file_get_contents function to read the URL. The real modification file_get_contents delay can be used with the
The code looks like this:
Copy CodeThe code is as follows:
/*
[discuz!] (C) 2001-2009 Comsenz Inc.
This is a freeware, the use is subject to license terms
$Id: security.inc.php 16688 2008-11-14 06:41:07z cnteacher $
*/
//If the in_discuz is
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