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

phpµÄ·¢Õ¹¼°°²×°

PHPµÄ·¢Õ¹
       PHP Ô­±¾µÄ¼ò³ÆΪ Personal Home Page£¬ÊÇRasmus Lerdorf ΪÁËҪά»¤¸öÈËÍøÒ³£¬¶øÓÃcÓïÑÔ¿ª·¢µÄһЩCGI¹¤¾ß³ÌÐò¼¯£¬À´È¡´úÔ­ÏÈʹÓÃµÄ Perl ³ÌÐò¡£×î³õÕâЩ¹¤¾ß³ÌÐòÓÃÀ´ÏÔʾ Rasmus Lerdorf µÄ¸öÈËÂÄÀú£¬ÒÔ¼°Í³¼ÆÍøÒ³Á÷Á¿¡£Ëû½«ÕâЩ³ÌÐòºÍһЩ±íµ¥Ö±ÒëÆ÷ÕûºÏÆðÀ´£¬³ÆΪ PHP/FI¡£PHP/FI ¿ÉÒÔºÍÊý¾Ý¿âÁ¬½Ó£¬²úÉú¼òµ¥µÄ¶¯Ì¬ÍøÒ³³ÌÐò¡£Rasmus Lerdorf ÔÚ1995Äê6ÔÂ8ÈÕ½« PHP/FI ¹«¿ªÊͳö£¬Ï£Íû¿ÉÒÔ͸¹ýÉçȺÀ´¼ÓËÙ³ÌÐò¿ª·¢ÓëÑ°ÕÒ´íÎó¡£Õâ¸öÊͳöµÄ°æ±¾ÃüÃûΪ PHP 2£¬ÒѾ­ÓнñÈÕ PHP µÄһЩ³ûÐÍ£¬ÏñÊÇÀàËÆ Perl µÄ±äÁ¿ÃüÃû·½Ê½¡¢±íµ¥´¦Àí¹¦ÄÜ¡¢ÒÔ¼°Ç¶Èëµ½ HTML ÖÐÖ´ÐеÄÄÜÁ¦¡£³ÌÐòÓï·¨ÉÏÒ²ÀàËÆ Perl£¬Óн϶àµÄÏÞÖÆ£¬²»¹ý¸ü¼òµ¥¡¢¸üÓе¯ÐÔ¡£
¡¡¡¡ÔÚ1997Ä꣬ÈÎÖ°ÓÚ Technion IIT ¹«Ë¾µÄÁ½¸öÒÔÉ«ÁгÌÐòÉè¼Æʦ£ºZeev Suraski ºÍ Andi Gutmans£¬ÖØдÁË PHP µÄÆÊÎöÆ÷£¬³ÉΪ PHP 3 µÄ»ù´¡£¬¶ø PHP Ò²ÔÚÕâ¸öʱºò¸Ä³ÆΪPHP: Hypertext Preprocessor.[5]¡£¾­¹ý¼¸¸öÔ²âÊÔ£¬¿ª·¢ÍŶÓÔÚ1997Äê11ÔÂÊͳöÁË PHP/FI 2£¬Ëæºó¾Í¿ªÊ¼ PHP 3 µÄ¿ª·Å²âÊÔ£¬×îºóÔÚ1998Äê6ÔÂÕýʽÊͳö PHP 3¡£Zeev Suraski ºÍ Andi Gutmans ÔÚ PHP 3 Êͳöºó¿ªÊ¼¸Äд PHP µÄºËÐÄ£¬Õâ¸öÔÚ1999ÄêÊͳöµÄÆÊÎöÆ÷³ÆΪ Zend Engine[7]£¬ËûÃÇÒ²ÔÚÒÔÉ«ÁÐµÄ Ramat Gan ³ÉÁ¢ÁË Zend Technologies À´¹ÜÀí PHP µÄ¿ª·¢¡£
¡¡¡¡ÔÚ2000Äê5ÔÂ22ÈÕ£¬ÒÔZend Engine 1.0Ϊ»ù´¡µÄPHP 4ÕýʽÊͳö£¬2004Äê7ÔÂ13ÈÕÔòÊͳöÁËPHP 5£¬PHP 5ÔòʹÓÃÁ˵ڶþ´úµÄZend Engine[5]¡£PHP°üº¬ÁËÐí¶àÐÂÌØÉ«£¬ÏñÊÇÇ¿»¯µÄÃæÏò¶ÔÏó¹¦ÄÜ¡¢ÒýÈëPDO£¨PHP Data Objects£¬Ò»¸ö´æÈ¡Êý¾Ý¿âµÄÑÓÉ캯Êý¿â£©¡¢ÒÔ¼°Ðí¶àЧÄÜÉϵÄÔöÇ¿¡£Ä¿Ç°PHP 4ÒѾ­²»»á¼ÌÐø¸üУ¬ÒÔ¹ÄÀøÓû§×ªÒƵ½PHP 5¡£
¡¡¡¡2008ÄêPHP 5³ÉΪÁËPHPΨһµÄÓÐÔÚ¿ª·¢µÄPHP°æ±¾¡£½«À´µÄPHP 5.3½«»á¼ÓÈëLate static bindingºÍһЩÆäËûµÄ¹¦ÄÜÇ¿»¯¡£PHP 6 µÄ¿ª·¢Ò²ÕýÔÚ½øÐÐÖУ¬Ö÷ÒªµÄ¸Ä½øÓÐÒƳýregister_globals¡¢magic quotes ºÍ Safe modeµÄ¹¦ÄÜ¡£
phpµÄ×îа汾ÊÇ5.2.6(2008-05-03¸üÐÂ)
¡¡¡¡phpµÄ¹Ù·½ÍøÕ¾£ºhttp://www.php.net/
¡¡¡¡PHP£ºPHPÊÇÒ»ÖÖ¿ª·ÅÔ´´úÂëµÄ½Å±¾±à³ÌÓïÑÔ¡£Ö÷ÒªÓÃÓÚWeb·þÎñÆ÷µÄ·þÎñÆ÷¶ËÓ¦ÓóÌÐò£¬ÓÃÓÚ¶¯Ì¬ÍøÒ³Éè¼Æ£¬ÊÇÒ»ÖÖǶÈëHTMLÒ³ÃæÖеĽű¾ÓïÑÔ¡£
¡¡¡¡phpµÄÔÚWindows Ï PHP »·¾³µÄÅäÖÃ
¡¡¡¡Ò». ËùÐèÈí¼þ»·¾³:
¡¡¡¡1. apache 2.2.4
¡¡¡¡2. active perl 5.10 ±ØÐë°²×°ÔÚ c:\perl
¡¡¡¡3. php 5.2.6 ±ØÐë°²ÔÚ c:\php


Ïà¹ØÎĵµ£º

PHP´éÍøÕ¾Ò»¸ö

ΪÁËÓ¦¸¶Êý×ÖýÌåʵ¼ùСѧÆÚ£¬ÓÃÁ½ÈýÌìµÄʱ¼ä´Ò´ÒææµØ¼ÜÆðÀ´Ò»¸öPHPÍøÕ¾¡£ÍøÕ¾ºÜ´é£¬ÀÏʦ¸øµÄ·ÖÊýÈÃËü¿´ÆðÀ´¸ü´é¡£
×öÕâ¸öÍøÕ¾µÄÄǶÎʱ¼äÕýºÃÔÚ¿´BrooksµÄÄDZ¾¿õÊÀ¾­µä¡¶ÈËÔÂÉñ»°¡·£¬Á˽âÁËÆäÖеēThe Surgical
Team”µÄ¿ª·¢Ä£Ê½£¬¾õµÃÔÚÌØÊⳡºÏÏ£¬ÕâÖÖ¿ª·¢Ä£Ê½È·Êµ»áÓµÓм«¸ßµÄ¿ª·¢Ð§ÂʺÍÍŶÓÕ½¶·Á¦¡£
Ò ......

¼ÌÐøÕª³­£º½ÌÄãÓÃPHPдMySQLÊý¾Ý¿âµÄÓû§ÈÏ֤ϵͳ

Óû§ÈÏÖ¤µÄÔ­ÀíºÜ¼òµ¥£ºÊ×ÏÈÐèÒªÓû§ÔÚÒ³ÃæÉÏÌîÈëÓû§ÃûºÍÃÜÂ룬µ±È»Ã»×¢²áµÄÓû§ÐèÒªÏÈ×¢²á¡£È»ºóµ÷ÓÃÊý¾Ý¿âËÑË÷ÊÇ·ñÓÐÏàÓ¦µÄÓû§¡£Èç¹ûÓоÍÈ·ÈÏ£¬Ã»ÓÐÔòÌáÐÑÓû§ÏÈ×¢²á¡£Ê¹ÓÃPHPÀ´Íê³ÉÕâÒ»Çкܼòµ¥£¬µ«ÐèҪעÒâµÄÊÇÈç¹ûÏëÔÚÒÔºóµÄÒ³ÃæÖж¼ÄÜÈ·ÈÏÓû§Éí·Ý¡£
µÚÒ»²½ÊÇ×öÒ»¸öµÇ¼µÄÒ³Ãæ¡£
µÚ¶þ²½¿ªÊ¼µÇ¼ºóµÄÈ·ÈϳÌÐòµÄÉ ......

php ʹÓÃmemcached °²×°ÅäÖÃ

 
1¡¢°²×°libeven
memcachedµÄʹÓÃÐèÒªlibevenµÄÖ§³Ö£¬ÎÒÃǵÃÏÈ×°ÉÏlibeven¡£
¹Ù·½ÍøÕ¾£ºhttp://www.monkey.org/~provos/libevent/
libevent°²×°·½Ê½±È½Ï¼òµ¥:
./configure && make
make install
¼ì²éÊÇ·ñ ÒѾ­°²×°
 ls -l /usr/local/lib/ | grep even
2¡¢°²×°memcached
¹Ù·½ÍøÕ¾£ºhttp://ww ......

PHPÖÐʹÓÃstrip_tags() È¥³ýhtml±êÇ©

 
ƽʱÓà htmlspecialchars() À´¹ýÂËhtml, µ«ÊÇ°ÑhtmlµÄ×Ö·ûתÒåÁË,×îºóÏÔʾ³öÀ´µÄ¾ÍÊÇhtmlÔ´´úÂë, ÀûÓÃstrip_tags()¾Í¿ÉÒÔ°Ñhtml±êÇ©È¥³ýµô.
[php]
$str = 'harryxu
‘;
echo(htmlspecialchars($str) . ‘
‘);
echo(strip_tags($str));
// output:
// harryxu
// harryxu
?> 
......

PHPÄ£°åÒýÇæ

ÓÃPHPдһ¸ö×Ô¼ºµÄÄ£°åÒýÇæ
2009-07-11 09:51
SmartyÒ»Ö±±»ÈËÊÓΪÊǶàÓàµÄ¶«Î÷£¬ÎÒ¾õµÃÈÏΪSmarty¶àÓàµÄÈ˲ÅÊǶàÓàµÄ....²»ËµÕâЩÁË¡£½ñÌìÎҾͽ̴ó¼Òд¸öÄ£°åÒýÇ棬Èôó¼Ò¶¼¿ÉÒÔдһ¸öÊôÓÚ×Ô¼ºµÄÄ£°åÒýÇ棬¶øÇÒ¿´ÍêÕâƪÎÄÕÂÖ®ºó£¬Äã¶ÔSmartyµÄÈÏʶ»á¸ü½øÒ»²½µÄ¡£ÎÒµÄÄ£°åÒýÇæÃû½ÐStupid£¨"ɵ¹Ï"µÄÒâ˼£©£¬ÎÒ²»Ï ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ