$smarty->cache-dir= "directory name"; Create a cache directory name
$smarty->caching=true; Cache is turned on, false when caching is not valid
$smarty->cache_lifetime=60; Cache time in seconds
Copy CodeSecond, the use and
Recursive method of PHP arrayThere are the following PHP arrays:
function GenTree5 ($items) {
foreach ($items as $item)
$items [$item [' pid ']][' son '] [$item [' id ']] = & $items [$item [' id ']];
A very light PHP database toolkit, born in two days (enough to prove very light).Two classes, one Connection management PDO connection (multi-database support), one quickquery for fast database operation (no back-and-forth between PDO and
The article randomly joins the specific string PHP code, using the tutorial: http://www.tongqiong.com/read.php?tid-102.html
/* Assuming your text variable is named $STR, you need to insert a code variable named
Phper most use the Mail function to send mail, but we can use the other SMTP server to send, it is recommended to use the PEAR ' s mail package to send mail.
$subject = "This mail was sent from SMTP.";
$mail _body = "The body of the
Check if the user is logged in
function Checklogin () {
if (Emptyempty ($_session[' User_info ')) {//check to see if the SESSION is empty
if (Emptyempty ($_cookie[' username ')) | | emptyempty ($_cookie[' password ')) {//If the
The implementation of the features of DHTML Technology relies on the interaction between the client script and the browser host and the Web pages that are output in the host, which is accomplished through the object-based technique.The
$arr 1 = $dblink->mem_fetch_array ("Select T_pid,imgname,invented,score from ' t_sum_giftimg ' where t_pid=3 or t_pid=6" , 0);
$arr 2 = $dblink->mem_fetch_array ("Select T_pid,imgname,invented,score from ' t_sum_giftimg ' where t_pid=10 or
!--? php
class Bar
{
public function test () {
$this->testprivate ();
$this->testpublic ();
}
Public function testpublic () {
echo "bar::testpublic\n";
}
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