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

PHPÖ®smarty

smarty×÷ΪPHPµÄÄ£°å£¬ÊµÏÖÁËǰ̨ÃÀ¹¤Óëºǫ́Âß¼­µÄ·ÖÀ롣ǰһ¶Îʱ¼ä¼òµ¥µØѧÁËһϣ¬°ÑÆä°²×°ÓÚÅäÖÃÒÔ¼°ÄÚ²¿µÄÓï·¨À´¼òµ¥×ܽáһϡ£È»ºóÒªÉè¼Æһϵç×ÓÉÌÎñϵͳ¡£
smartyѹËõ°ü½âѹºó£¬ÔÚlibsÎļþ¼ÐÏ£¬ÓÐ2¸öĿ¼ºÍ4¸öÎļþ£¬2¸öÎļþ¼Ð·Ö±ðÊÇinternalsºÍplugins£¬4¸öÎļþÒÀ´ÎÊÇdebug,smarty.class,config_file.class,smarty_compiler.class¡£Õâ2¸öĿ¼ºÍ4¸öÎļþÐèÒª¿½È밲װĿ¼¡£°²×°Íê³Éºó£¬ÐèÒª½¨Ò»¸ösmartyµÄÅäÖÃÎļþ£¬Ò»°ãÃüÃûΪsmarty_config.php,ÄÚ²¿´úÂëÐèÒª¶¨ÒåsmartyµÄ±àÒëĿ¼µÈµÈ¡£´úÂëÒ»°ãÈçÏÂ
<?php
¡¡¡¡include "class/Smarty.class.php";
¡¡¡¡define('__SITE_ROOT', 'd:/appserv/web/demo'); // ×îºóûÓÐбÏß
¡¡¡¡$tpl = new Smarty();
¡¡¡¡$tpl->template_dir = __SITE_ROOT . "/templates/";
¡¡¡¡$tpl->compile_dir = __SITE_ROOT . "/templates_c/";
¡¡¡¡$tpl->config_dir = __SITE_ROOT . "/configs/";
¡¡¡¡$tpl->cache_dir = __SITE_ROOT . "/cache/";
¡¡¡¡$tpl->left_delimiter = '<{';
¡¡¡¡$tpl->right_delimiter = '}>';
¡¡¡¡?>
 °üÀ¨ÉèÖÃÄ£°åĿ¼£¬±àÒëĿ¼£¬×óÓÒ·Ö¸ô·ûµÈµÈ¡£


Ïà¹ØÎĵµ£º

php JSON ÖÐÎÄÂÒÂë½â¾ö·½°¸

<?php
// ½«Êý×éת»»³ÉJson¸ñʽ£¬ÖÐÎÄÐèÒª½øÐÐURL±àÂë´¦Àí
function Array2Json($array) {
    arrayRecursive($array, 'urlencode', true);
    $json = json_encode($array);
    $json = urldecode($json);
    // extÐèÒª²»´øÒýºÅµÄboolÀàÐÍ
&n ......

php ³ÌÐòÔËÐÐʱ¼ä ¼ÆËã

/**
* »ñµÃµ±Ç°Ê±¼äµÄºÁÃëÊý£¬Óû§¼ì²âÒ³ÃæµÄÖ´ÐÐʱ¼ä
*
* @author cjz
* @date Thu Apr 09 15:05:55 CST 2009
*
* @return float(ºÁÃëÊý)
*/
function myGetMicrotime()
{
list($usec,$sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
  ......

MemcachedÖÐPerlÐòÁл¯´æ´¢µÄ¶ÔÏóPHPÎÞ·¨¶ÁÈ¡µÄ½â¾ö

Perl MemcachedµÄ¿Í»§¶ËÐòÁл¯¶ÔÏó²ÉÓõÄÊÇStorableÄ£¿éµÄnfreeze·½·¨£¬¶øÕâ¸ö·½·¨ÓÖµ÷ÓÃÁËcÀ©Õ¹µÄdo_store·½·¨£»·´ÐòÁл¯Ê¹ÓõÄÊÇStorableÄ£¿éµÄthaw·½·¨£¬¶øÕâ¸ö·½·¨ÓÖÊǵ÷ÓõÄcÀ©Õ¹µÄdo_retrieve·½·¨¡£
¶øÔÚPHPÖУ¬½øÐеÄÈ´ÊÇserializeºÍunserialize²Ù×÷¡£Ôì³ÉÁËÎÞ·¨Õý³£¶ÁÈ¡µÄ½á¹û¡£
Perl´æ´¢Ò»¸ö('a', 'c')Êý×éµÄÒýÓ ......

±È½Ï php IDE vs 2010


¸öÈ˱ȼÛÈÏ¿É£¬ÏÖÔÚÊÇÓà netbean 6.8 ¹Ù·½Ìṩ²å¼þºÜÆëÈ«¡£
http://www.ibm.com/developerworks/cn/opensource/os-php-ide/
http://www.pusuo.net/2009-09-19/110884581.html
ÔÙÓбȽϹØ×¢vs 2010µÄÕýʽ°æ£¬ÏëÒªºÍvs.net£¬Ô­À´ÊÇ°²×°ÔÚvs2008 ÒÔÉÏ°æ±¾µÄ£¬ÏÖÔÚ²»ÖªµÀÊDz»ÊÇ¿ÉÒÔÕûºÏµ½vs 2010
Èç¹û¿ÉÒÔÕûºÏµÄ»°£¬ÄÇôΠ......

PHPÓʼþÊÕ·¢£¬ºÍ±àÂëÎÊÌâ¡£Êý¾ÝÆ¥Åä

<?php
header("content-type:text/html; charset=UTF-8");
/*
 * record kid words and insert into database
 * user by sending email to publication kid words
 *
 */
include 'POP3.php';
include 'email_class.php';
include 'Mail_mimeDecode.php';
//include 'include/compatible ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ