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

Smarty Ä£°å ´Óphp·ÖÅäµÄ±äÁ¿ Êý×é

index.php:
$smarty = new Smarty;
$smarty->assign('Contacts',
array('555-222-9876',
'zaphod@slartibartfast.com',
array('555-444-3333',
'555-111-1234')));
$smarty->display('index.tpl');
index.tpl:
{$Contacts[0]}<br>
{$Contacts[1]}<br>
{* you can print arrays of arrays as well *}
{$Contacts[2][0]}<br>
{$Contacts[2][1]}<br>
OUTPUT:
555-222-9876<br>
zaphod@slartibartfast.com<br>
555-444-3333<br>
555-111-1234<br>


Ïà¹ØÎĵµ£º

PHP¿ª·¢»·¾³´î½¨


 
 
1.´ò¿ªÎҵĵçÄÔ£¬½øÈëDÅÌ£¬ÔÚÆäÏÂн¨Ò»¸öÎļþ¼Ð£¬ÃûΪ local ¡£
2.µ½Æä¹Ù·½Õ¾µãÏÂÔØ apache_2.2.4-win32-x86-no_ssl.msi ²¢Ö´ÐС£
3.°´3´ÎNext°´Å¥£¬°²×°³ÌÐòÒªÇóÊäÈëÄãµÄNetwork Domain£¨ÍøÂçÓòÃû£©¡¢Server Domain£¨·þÎñÆ÷ÓòÃû£©ºÍÍøÕ¾¹ÜÀíÔ±µÄE-mail£¬Óеϰ¾ÍÈçʵÌîд£¬±¾ËµÃ÷½éÉܵÄÊDZ¾µØ×Ô½¨²âÊ ......

apache and php common tips and problems

When I deploy php application on apache, some problem come out, and solved. Here's the tips and problems solved.
0.How could I deploy an apache server armed with php, mysql, perl, and phpMyAdmin on the fly?
You need a package bundled with all these tools,  xampp shall meet you needs, you can ......

phpÊÇʲô£¿

Ô­ÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/2010/01/25/29/
ѧϰÁËÒ»¶Îʱ¼äPHP£¬¾õµÃÓеãÊÕ»ñ¡£Ò²Ó¦¸Ã½«Ñ§¹ýµÄ¶«Î÷ÄóöÀ´É¹É¹ÁË£¬²»È»¾Í½»»Ø¸ø¿Î±¾ÁË¡£
PHPÊÇÊ²Ã´ÄØ£¿
PHP£¬Êdz¬¼¶Îı¾Ô¤´¦ÀíÓïÑÔ£¨PHP:Hypertext Preprocessor£©µÄËõд¡£PHP ÊÇÒ»ÖÖ HTML ÄÚǶʽµÄÓïÑÔ£¬ÊÇÒ»ÖÖÔÚ·þÎñÆ÷¶ËÖ´ÐеÄǶÈëHTMLÎĵµµÄ½Å±¾ÓïÑÔ£¬Óï ......

php³£ÓõÄÒ»¸ö³£Á¿

phpÖÐDIRECTORY_SEPARATOR Óë PATH_SEPARATORµÄÇø±ð
DIRECTORY_SEPARATOR£ºÂ·¾¶·Ö¸ô·û£¬linuxÉϾÍÊÇ’/’    windowsÉÏÊÇ’\’
PATH_SEPARATOR£ºinclude¶à¸ö·¾¶Ê¹Óã¬ÔÚwinÏ£¬µ±ÄãÒªinclude¶à¸ö·¾¶µÄ»°£¬ÄãÒªÓÔ;”¸ô¿ª£¬µ«ÔÚlinuxϾÍʹÓÔ:”¸ô¿ªµÄ¡£
Õâ2¸ö³£ ......

Smarty Ä£°å ´Óphp·ÖÅäµÄ±äÁ¿

index.php:
$smarty = new Smarty;
$smarty->assign('Contacts',
array('555-222-9876',
'zaphod@slartibartfast.com',
array('555-444-3333',
'555-111-1234')));
$smarty->display('index.tpl');
index.tpl:
{$Contacts[0]}<br>
{$Contacts[1]}<br>
{* you can print arrays of arrays ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ