Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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ÊÕ¼¯

get_class_methods() // ËùÓз½·¨   
get_included_files()//·µ»Øµ±Ç°Ò³ËùÓмÓÔØµÄÎļþ   
get_declared_classes()// ·µ»Øµ±Ç°Ò³ËùÓÐclass   
get_declared_interfaces()// ·µ»ØËùÓеĽӿڠ  
get_defined_functions()// ·µ»ØËùÓеÄfunction &nb ......

FTP µÃµ½ÎļþÊ÷[php]

<?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 ......

PHPÏòÒ»¸ö×Ö·û´®Ëæ»úÌí¼ÓÎÄ×Ö

 ºÜ¾ÃǰÔÚbaidu»Ø´ðÎÊÌâʱдµÄ“ÏòÒ»¸ö×Ö·û´®Ëæ»úÌí¼ÓÎÄ×Ö”µÄ½â¾ö·½°¸£¬¿ÉÒÔÖ§³ÖÖÐÓ¢ÎÄ
<?php
/*********************************************************
 describe£º×Ö·û´®´¦Àí,¿ÉÒÔ´¦ÀíÖÐÓ¢ÎÄ
 function£ºÏòÒ»¸ö×Ö·û´®Ëæ»úÌí¼ÓÎÄ×Ö
 author£º  etongchina
 email2m ......

PHP VS ASP.NET


PHP VS ASP.NET
²©¿Í·ÖÀà: ÊÕ»ñ»ýÀÛ
bruce·¢±íÓÚËÄÔ 14 2009, 04:42 ÏÂÎç
        PHPºÍASP.NETÔÚ±¾ÖÊÉÏÊÇÓкܴó²»Í¬µÄ£¬PHP³£±»Ó¦Óõ½¹¦Ä̶ܹ¨µÄÍøÕ¾¹¹½¨ÉÏ£¬ÀýÈçÁôÑÔ°å¡¢ÐÂÎÅ·¢²¼¡¢ÂÛ̳ºÍͶƱµÈ£¬ÕâЩ¹¦ÄÜÊÇ¿ìËÙ½¨Õ¾±Ø±¸µÄ£¬×Ô¶¨Ò帴ÔÓµÄÉÌÒµÁ÷³Ì²»¶à£¬Òò´ËÍøÂ·ÉÏÓÐÐí¶àÏֳɵ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ