PHPµÄsmartyʹÓÃÐĵã¡
»¨Á˼¸¸öСʱµÄʱ¼äÑо¿Ò»Ï£¬·¢ÏÖ»¹ÊDZȽϺÃÓõģ¡
smarty¿ÉÒԺܺõؽ«Âß¼Óë±íÏÖ·ÖÀ룬ºǫ́³ÌÐòÔ±ºÍwebÇ°¶Ë¹¤³Ìʦ¸÷¸É¸÷µÄÊ£¬²»ÏñÒÔÇ°£¬php´úÂëºÍhtml´úÂëÔÓºÏÔÚÒ»Æ𣬺ǫ́³ÌÐòÔ±ºÍÇ°¶ËÇ°ÐòÔ±Ò»Æð·¢ì£¬ÒòΪËûÃǵļ¼ÄÜÒªÇó¸ü¸ßÁË£¬¶¼±ØÐëÒª¶®¶Ô·½µÄÓïÑÔ£¬ºÇºÇ£¡
ÍøÉϽéÉܵÄÅäÖÃÌ«¶ßàÂÁË£¬Ò²ÐíÊÇÀÏ°æ±¾µÄÔµ¹ÊµÄ£¬ÒòΪÎÒÒÔǰûÓÐÓùý£¡
ÔÚ¹ÙÍøÏÂÔØ×îеİ汾£¬½âѹ£¬ÅäÖã¬ÎÒÓõÄÊÇSmarty-2.6.26Õâ¸ö°æ±¾µÄ£¬ÔËÐÐϵͳÊÇwindows XP+apache+php
ÆäËû»·¾³´óͬСÒì°É£¡
Ö»ÐèÒªÔÚphp.iniÖÐÐÞ¸Äinclude_path,ºóÃæ¼ÓÒ»ÐÐÄãµÄSmarty¿âµÄ¾ø¶Ô·¾¶£¬µ±È»Õâ¸öÎļþ°ü×îºÃ²»Òª·ÅÔÚºÍÍøҳĿ¼һÆðµÄµØ·½¡£
¸üҪעÒâÊÇÔÚwindows²Ù×÷ϵͳÏ£¬±ðÍü¼Ç½«Ç°ÃæµÄ·ÖºÅ×¢ÊÍÈ¥µôÓ´£¡
Ïà¹ØÎĵµ£º
php½Ì³Ì mysql½Ì³Ì_connect Óëmysql_pconnectº¯ÊýÓëʵÀý½Ì³Ì
mysql_connect
mysql_connect($this->root,$this->user,$this->pass)
/*
mysql_connect ,µ¥¸ö·´ÎÊÓû§²»»áƵ·±µÄµ÷ÓÃÊý¾Ý¿â½Ì³Ì£¬Ã»±ØÒª±£³ÖÁ¬½Ó£¬¶øÇÒmysqlµÄÁ¬½ÓÊýÒ²ÊÇÓÐÏÞÖƵģ¬ ʹÓà ¼°Ê±·ÃÎʱȽÏƵ·±£¬Ò²×îºÃʹÓÃmysql_connect£¬ÕâÑùÊ¹Ó ......
1.
Ç°ÑÔ
ÎÒʹÓõÄÖ÷»úÃûΪserver1.example.com
£¬ip
µØÖ·ÊÇ192.168.0.100
¡£ÕâЩÉèÖÿÉÄÜÓëÄãÏëÒªµÄÓÐËù²»Í¬£¬ËùÒÔÄã±ØÐëÔÚÊʵ±µÄµØ·½ÐÞ¸Äһϡ£
2
°²×°MySQL5
ÓÃÏÂÁÐÃüÁî°²×°MySQL
£º
yum install mysql mysql-server
È»ºóÎÒÃÇΪMySQL
´´½¨ÏµÍ³Æô¶¯Á´½Ó£¨ÕâÑùµÄ»°£¬MySQL
¾Í»áËæ×ÅϵͳÆô¶¯¶øÆô¶¯£©£¬²¢Æô¶¯ ......
http://edu.codepub.com/2010/0131/20248.php
ÆäʵÕâ¸öÓ¦¸Ã²»ËãÊÇÒÉÄÑÎÊÌ⣬¾ÍÊÇphpÖÐÓà sessionidµÃµ½sessionµÄÖµ£¬ÒòΪµÄÈ·ºÜ¼òµ¥£¬Ö»ÊÇ¿ÉÄÜ´ó¼ÒƽʱÓò»µ½ËùÒÔûÓÐ×¢Òâµ½°ÕÁË¡£
ÏÈ˵˵£¬Õâ¸ö»úÖƵÄÓÃ;°É£¬µ½ÏÖÔÚΪֹսµØÖªµÀÕâ¸ö»úÖÆÓÐÁ½¸ö·½ÃæµÄÓÃ;£º
ÆäʵÕâ¸öÓ¦¸Ã²»ËãÊÇÒÉÄÑÎÊÌ⣬¾ÍÊÇphpÖÐÓà sessi ......
ÉùÃ÷£º²¿ÊðDedeCMS£¬ÔÚÍøÉÏËÑÁ˺ܶà×ÊÁÏ£¬°üÀ¨Õâ¸öÂÛ̳£¬¼¸ºõûÓз¢ÏÖÔÚlinuxϲ¿ÊðµÄÏÖ³É×ÊÁÏ¿ÉÒԲο¼¡£
Ë죬×Ô¼º°ÑÕû¸ö²¿Êð¹ý³ÌÖÐһЩÖØÒªµÄµã¼Ç¼ÏÂÀ´£¬Ò»ÊÇËã×ö×Ô¼ºµÄÀͶ¯³É¹û£¬Í¬Ê±£¬ÆÚÍû¶ÔÔø¾ºÍÎÒÒ»ÑùÃÔ㣬²»ÖªÈçºÎ²¿Êð   ......