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

[PHP]SmartyµÄʹÓÃ

<?php
define('SMARTY_TMP_DIR','C:/php5/Smarty-2.6.13/');
define('SMARTY_DIR','C:/php5/Smarty-2.6.13/libs/'); //SMARTY_DIR ->smarty keyword,must be defined as libs dectory
require_once(SMARTY_DIR.'Smarty.class.php');
//½¨Á¢Ò»¸ösmarty¶ÔÏó
$smarty = new Smarty;
$smarty->template_dir = SMARTY_TMP_DIR.'templates/';
$smarty->compile_dir = SMARTY_TMP_DIR.'templates_c/';
$smarty->config_dir = SMARTY_TMP_DIR.'configs/';
$smarty->cache_dir = SMARTY_TMP_DIR.'cache/';
//$smarty->left_delimiter = '{/';
//$smarty->right_delimiter = '/}';
//----------simple show example------------
//$smarty->assign('name','Porky');
//$smarty->display('smarty_test.tpl');
?>


Ïà¹ØÎĵµ£º

Ö§³ÖUCenterµÄPHP½¨Õ¾³ÌÐòÒ»ÀÀ

½¨Õ¾³ÌÐòÊÇÕ¾³¤ÔËÓªÍøÕ¾µÄ¸ù±¾£¬ÈçºÎ½áºÏÕûºÏ¸÷¸ö²»Í¬ÏµÍ³µÄ³ÌÐò¡¢Êý¾Ý±í¡¢¼Ü¹¹£¬ÌṩͳһµÄÍøÕ¾»áԱϵͳ£¬Ò»Ö±ÊÇÀ§ÈźܶàÕ¾³¤µÄÎÊÌ⣬¶øÊ¹ÓÃUCenter¿ÉÒÔ½ÏΪ¼òµ¥µÄʵÏÖ²»Í¬ÏµÍ³Ö®¼äµÄÕûºÏÎÊÌâ¡£
¡¡¡¡UCenterÊÇ¿µÊ¢´´ÏëÍÆ³öµÄÃâ·Ñ¿ªÔ´µÄ½¨Õ¾¹¤¾ß£¬ÊǸ÷¸ö½¨Õ¾²úÆ·Ö®¼äÐÅÏ¢Ö±½Ó´«µÝµÄÒ»¸ö¹¤¾ß£¬¿µÊ¢µÄTeamÔÚÆäDiscuzÂÛ̳ÉÏÊÕ ......

¹úÄÚPHP¿ªÔ´½¨Õ¾³ÌÐòÒ»ÀÀ

¹úÍâµÄ¿ªÔ´¼¼ÊõÒ²Ó°ÏìºÍÍÆ¶¯Á˹úÄÚ¿ªÔ´³ÌÐòµÄ·¢Õ¹£¬ÉÏÎÄÎÒ½éÉܵġ¶¹úÍâÓÅÐ㿪ԴPHP½¨Õ¾³ÌÐòÒ»ÀÀ¡·ÖУ¬ºÜ¶à¹úÍ⿪Դ³ÌÐò²¢²»Ì«·ûºÏÖйúÈ˵ÄʹÓÃϰ¹ß£¬¶ø¹úÄÚÓÐһЩ³§¼Ò»ò¸öÈËÒ²×öÁËһЩ²»´íµÄ²úÆ·£¬²»ÉÙ³ÌÐòÊÇÌṩԴ´úÂëÏÂÔØµÄ£¬ËäÈ»ÓÐЩÔÚÐí¿ÉЭÒéÉϺͿªÔ´Ðí¿ÉÖ¤ÓÐЩ³öÈ룬µ«ÆäÔÚʹÓÃÉÏ»¹ÊÇͦ·ûºÏÖйúÈ˵ÄʹÓÃϰ¹ß£¬½ñÌìÎÒ¾ ......

PHPÊý¾ÝÀàÐ͵Äת»»

PHPµÄÊý¾ÝÀàÐ͵Äת»»ÓÐÁ½ÖÖ·½·¨¿ÉÒÔ°ìµ½£ºÖ±½ÓÊäÈëÄ¿±êµÄÊý¾ÝÀàÐͺÍͨ¹ýsettypeº¯ÊýʵÏÖ¡£
PHPÊý¾Ýת»»³ÉÕûÊý
FloatÐÍÊý¾Ýת»»³ÉintÐÍ
FloatÐÍת»»³ÉintÐÍ£¬Ð¡ÊýµãºóµÄÊý½«±»ÉáÆú¡£Èç¹ûfloatÊý³¬¹ó³¬¹ýÁËÕûÐ͵Äȡֵ·¶Î§£¬ÄÇô½á¹û¿ÉÄÜÊÇ0»òÕßÊÇÕûÐεÄ×îС¸ºÊý¡£
ÀýÈ磺
<?php
$php = 1.59;
echo (int)$php.&rdquo ......

10¿îPHP¿ªÔ´µç×ÓÉÌÎñϵͳ


×î½üÒ»ÄêÒÔÀ´£¬Õ¾³¤½çÓÐÒ»¸öÇ÷ÊÆ: ºÜ¶àÕ¾³¤×ªÐÍ×öµç×ÓÉÌÎñ£¬»òÀûÓÃÏÖÓеÄÍøÕ¾×ÊÔ´ÕûºÏµç×ÓÉÌÎñ¡£Ò»·½ÃæÓÉÓÚÍøÕ¾Ô½À´Ô½ÄÑ×ö£¬¶øÍ¬Ê±ÔÚ¾­¼Ã´ó»·¾³µÄÓ°ÏìÏ£¬ÍøÉϹºÎïȴԽΪԽ³ÔÏ㡣ת×öÍøÉÌ»òÊǽáºÏÍøÂ繺ÎïÊǸö²»´íµÄÖ÷Òâ¡£
Òª×öµç×ÓÉÌÎñ£¬Äã¿ÉÒÔÑ¡ÔñÔÚÌÔ±¦£¬ÅÄÅÄ£¬Ebay»òÊÇ×îеİٶÈÓа¡£¬¶øÈç¹ûÒª×Ô¼º´î½¨Æ½Ì¨£¬µ±È»Ê× ......

PHP ÖлñÈ¡ÎļþÃû¼°Â·¾¶


¡¡¡¡ÎªÁ˽ű¾³ÌÐòµÄ¼æÈÝÐÔ£¬ºÜ¶àʱºò½Å±¾µÄÃû³Æ¶¼²»Êǹ̶¨µÄ¡£ËùÒÔÎÒÃÇÐèҪͨ¹ý¶¯Ì¬»ñÈ¡µ±Ç°½Å±¾µÄ·¾¶¡¢ÎļþÃûÀ´Íê³ÉijЩ¹¦ÄÜ¡£
¡¡¡¡PHP ÖУ¬ÎÒÃÇ¿ÉÒÔʹÓó£Á¿ __FILE__ À´»ñÈ¡µ±Ç°±»Ö´Ðнű¾µÄÍêÕû·¾¶¡£
¡¡¡¡×¢Ò⣺µ±°üº¬´Ë±äÁ¿µÄ½Å±¾±»ÆäËû½Å±¾include»òÕßrequireµÄʱºò£¬ __FILE__ ½«ÈÔÈ»·µ»Ø´Ë½Å±¾µÄµØÖ·£¬¶ø²»ÊÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ