PHPÄ£°åÒýÇæSmarty»º´æÓ¦ÓÃ
1£ºsmarty »º´æµÄÅäÖÃ
Php´úÂë
$smarty->cache_dir = "/caches/"; //»º´æĿ¼
$smarty->caching = true; //¿ªÆô»º´æ,ΪflaseµÄʱºî»º´æÎÞЧ
$smarty->cache_lifetime = 60; //»º´æʱ¼ä
2:smarty»º´æµÄʹÓúÍÇå³ý
Php´úÂë
$smarty->display('cache.tpl', cache_id); //´´½¨´øIDµÄ»º´æ,cache.tpl Ä£°åÎļþ
$smarty->clear_all_cache(); //Çå³ýËùÓлº´æ
$smarty->clear_cache('index.htm'); //Çå³ýindex.tplµÄ»º´æ
$smarty->clear_cache('index.htm',cache_id); //Çå³ýÖ¸¶¨idµÄ»º´æ
$smarty->display('cache.tpl', cache_id); //´´½¨´øIDµÄ»º´æ
3£ºsmartyµÄ¾Ö²¿»º´æ
insert º¯ÊýĬÈÏÊDz»»º´æµÄ¡£²¢ÇÒÕâ¸öÊìϤ²»ÄÜÐÞ¸Ä
Html´úÂë
Ä£°å index.htm
<div> {insert name="get_time"}</div>
index.php
<?php
function insert_get_time(){
return date("y-m-d");
}
?>
Ïà¹ØÎĵµ£º
<?php
$host="192.168.1.214";
$post=21;
$username="zwc3g";
$password="zwc3ggg";
$ftp=ftp_connect($host,$post);
ftp_login($ftp,$username,$password);
displayTheFolder($ftp,"/zhulu2");
//´òÓ¡FTPÉϵĸÃĿ¼ÏµÄËùÓÐÎļþ¡£
fu ......
1.ðÅÝÅÅÐò
function m_sort($arr)
{
$l = count($arr);
if($l==0) return false;
for($i=0;$i<$l-1;$i++)
{
for($j=$i+1;$j<$l-1;$j++)
......
ÆäʵÕâƪÎÄÕÂÒ²²»ÄÜËã×÷ÊÇÔ´´£¬Ö»ÊÇÔÚÔ×÷ÕߵĻù´¡ÉÏÐ޸ĵıȽ϶࣬¼¸ºõÖØдÁËÒ»±é¡£
<?php
/**
*ÔÚÔ×÷ÕߵĻù´¡ÉÏÐ޸ĵģ¬ºÇºÇ£¬²»¹ýÍü¼ÇÁËÔ×÷ÕßÊÇËÁË£¬
*Èç¹ûÔ×÷Õß¿´µ½µÄ»°£¬¸øÎÒÒ»¸öÌáʾ£¬o(∩_∩)o...
*ÎÒµÄblog:http://etongchina.blogcn.com
*ÎÒµÄÓÊÏä:etongchina@gmail.com
**/
fu ......
ºÜ¾ÃÇ°ÔÚbaidu»Ø´ðÎÊÌâʱдµÄ“ÏòÒ»¸ö×Ö·û´®Ëæ»úÌí¼ÓÎÄ×Ö”µÄ½â¾ö·½°¸£¬¿ÉÒÔÖ§³ÖÖÐÓ¢ÎÄ
<?php
/*********************************************************
describe£º×Ö·û´®´¦Àí,¿ÉÒÔ´¦ÀíÖÐÓ¢ÎÄ
function£ºÏòÒ»¸ö×Ö·û´®Ëæ»úÌí¼ÓÎÄ×Ö
author£º etongchina
email2m ......
PHP VS ASP.NET
²©¿Í·ÖÀà: ÊÕ»ñ»ýÀÛ
bruce·¢±íÓÚËÄÔ 14 2009, 04:42 ÏÂÎç
PHPºÍASP.NETÔÚ±¾ÖÊÉÏÊÇÓкܴó²»Í¬µÄ£¬PHP³£±»Ó¦Óõ½¹¦Ä̶ܹ¨µÄÍøÕ¾¹¹½¨ÉÏ£¬ÀýÈçÁôÑÔ°å¡¢ÐÂÎÅ·¢²¼¡¢ÂÛ̳ºÍͶƱµÈ£¬ÕâЩ¹¦ÄÜÊÇ¿ìËÙ½¨Õ¾±Ø±¸µÄ£¬×Ô¶¨Ò帴ÔÓµÄÉÌÒµÁ÷³Ì²»¶à£¬Òò´ËÍø·ÉÏÓÐÐí¶àÏֳɵ ......