PHP»ù±¾Óï·¨£¨°Ë£©—— ±íµ¥´¦Àí
±íµ¥ºÍÓû§ÊäÈë
PHP ±íµ¥´¦Àí
±íµ¥ÊµÀý£º
<html>
<body>
<form action="welcome.php" method="post">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
</body>
</html>
ÉÏÃæµÄ HTML Ò³ÃæʵÀý°üº¬ÁËÁ½¸öÊäÈë¿òºÍÒ»¸öÌá½»°´Å¥¡£µ±Óû§Ìîд¸Ã±íµ¥²¢µ¥»÷Ìá½»°´Å¥Ê±£¬±íµ¥µÄÊý¾Ý»á±»ËÍÍù "welcome.php" Õâ¸öÎļþ¡£
"welcome.php" ÎļþÀàËÆÕâÑù£º
<html>
<body>
Welcome <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old.
</body>
</html>
ÉÏÃæÕâ¸ö½Å±¾µÄÊä³öÑù±¾ÀàËÆÕâÑù£º
Welcome John.
You are 28 years old.
ÎÒÃǽ«ÔÚÏÂÒ»Õ½âÊÍ PHP $_GET ºÍ $_POST¡£
±íµ¥ÑéÖ¤
Ó¦¸ÃÔÚÈκοÉÄܵÄʱºò¶ÔÓû§ÊäÈë½øÐÐÑéÖ¤¡£¿Í»§¶ËµÄÑéÖ¤Ëٶȸü¿ì£¬²¢ÇÒ¿ÉÒÔ¼õÇá·þÎñÆ÷µÄ¸ºÔØ¡£
²»¹ý£¬ÈκÎÁ÷Á¿ºÜ¸ßÒÔÖÁÓÚ²»µÃ²»µ£ÐÄ·þÎñÆ÷×ÊÔ´µÄÕ¾µã£¬Ò²ÓбØÒªµ£ÐÄÕ¾µãµÄ°²È«ÐÔ¡£Èç¹û±íµ¥·ÃÎʵÄÊÇÊý¾Ý¿â£¬¾Í·Ç³£ÓбØÒª²ÉÓ÷þÎñÆ÷¶ËµÄÑéÖ¤¡£
ÔÚ·þÎñÆ÷ÑéÖ¤±íµ¥µÄÒ»Öֺõķ½Ê½ÊÇ£¬°Ñ±íµ¥´«¸øËü×Ô¼º£¬¶ø²»ÊÇÌøתµ½²»Í¬µÄÒ³Ãæ¡£ÕâÑùÓû§¾Í¿ÉÒÔÔÚͬһÕÅ±íµ¥Ò³ÃæµÃµ½´íÎóÐÅÏ¢¡£Óû§Ò²¾Í¸üÈÝÒ×·¢ÏÖ´íÎóÁË¡£
Ïà¹ØÎĵµ£º
MySQL+PHP²úÉúÂÒÂëÔÒò£º
¡ô MySQLÊý¾Ý¿âĬÈϵıàÂëÊÇutf8,Èç¹ûÕâÖÖ±àÂëÓëÄãµÄPHPÍøÒ³²»Ò»ÖÂ,¿ÉÄܾͻáÔì³ÉMySQLÂÒÂ룻
¡ô MySQLÖд´½¨±íʱ»áÈÃÄãÑ¡ÔñÒ»ÖÖ±àÂë,Èç¹ûÕâÖÖ±àÂëÓëÄãµÄÍøÒ³±àÂë²»Ò»ÖÂ,Ò²¿ÉÄÜÔì³ÉMySQLÂÒÂ룻
¡ô MySQL´´½¨±íʱÌí¼Ó×Ö¶ÎÊÇ¿ÉÒÔÑ¡Ôñ±àÂëµÄ,Èç¹ûÕâÖÖ±àÂëÓëÄãµÄÍøÒ³±àÂë²»Ò»ÖÂ,Ò²¿ÉÄÜÔì³ÉMySQ ......
http://blog.s135.com/read.php/142.htm
¡¡¡¡×î½üÔÚдPHP³ÌÐòʱ£¬ÐèҪʹä¯ÀÀÆ÷ÔÚhttpsºÍhttpÖ®¼äת»¯£¬ÉÏÍøËÑË÷Ïà¹ØÐÅÏ¢£¬ÎÞÄÎÖ»ÓÐ×î½üÔÚдPHP³ÌÐòʱ£¬ÐèҪʹä¯ÀÀÆ÷ÔÚhttpsºÍhttpÖ®¼äת»¯£¬ÉÏÍøËÑË÷Ïà¹ØÐÅÏ¢£¬ÎÞÄÎÖ»ÓÐһƪ½éÉÜÓÃASPʵÏÖ“ÔÚhttpºÍhttpsÖ®¼äת»¯”µÄÎÄÕ£¬ÓÚÊÇÖ»ºÃÐÐдÁËÓÃPHPʵÏÖhttpÓëhttpsת» ......
¼ÙÉèphp°²×°ÔÚ/usr/local/php5/bin/php£¬³õʼÔÚÃüÁîÐÐÖ´ÐÐPHPµÄʱºòÒªÊäÈëÒ»³¤´®µÄ·¾¶£¬eg£º
$>/usr/local/php5/bin/php phpinfo.php
·Ç³£µÄÂé·³£¬ÏÖÔÚÖ»Ð轫php¿½±´ÖÁusr/sbinĿ¼¼´¿ÉÖ±½ÓʹÓÃphpÃüÁeg£º
$>cp /usr/local/php5/bin/php /usr/sbin/
$>php phpinfo.php
......
Zend_Search_Lucene ÊÇÒ»¸öÍêÈ«ÓÉ PHP 5 ±àдµÄͨÓÃÎı¾ËÑË÷ÒýÇæ¡£ÓÉÓÚÆ佫Ë÷Òý±£´æÔÚÎļþϵͳÖжø²»ÐèÒªÊý¾Ý¿âÖ§³Ö£¬Òò´ËËü¼¸ºõ¿ÉÒÔΪÈκÎÓÉ PHP Çý¶¯µÄÍøÕ¾Ôö¼ÓËÑË÷ÄÜÁ¦¡£Zend_Search_Lucene Ö§³ÖÏÂÁÐÌØÐÔ£º
¾ßÓÐÅÅÃû¹¦ÄܵÄËÑË÷——×î·ûºÏÒªÇóµÄ½á¹û³öÏÖÔÚ×îÇ°Ãæ
Ðí¶àÇ¿´óµÄ²éѯÀàÐÍ£º¶ÌÓï²éѯ¡¢Í¨Åä·û²éѯ ......
switch Óï¾ä
Èç¹ûÄúÏ£ÍûÓÐÑ¡ÔñµØÖ´ÐÐÈô¸É´úÂë¿éÖ®Ò»£¬ÇëʹÓà Switch Óï¾ä¡£Ê¹Óà Switch Óï¾ä¿ÉÒÔ±ÜÃâÈß³¤µÄ if..elseif..else ´úÂë¿é¡£
Óï·¨
switch (expression)
{
case label1:
code to be executed if expression = label1;
break;
case label2:
code to be executed if expressio ......