PHPÔÚÆóÒµ»·¾³ÏµÄÊÊÓÃÐÔ
¡¡¡¡ËäÈ»PHPÊÇWebÓ¦Óÿª·¢ÖÐ×î¹ã·ºÊ¹ÓõĻ·¾³£¬µ«Ëü»¹ÊÇÒ»¶È±»ÈÏΪÎÞÔµÆóÒµ¼¶¿ª·¢¡£InfoQ×éÖ¯ÁËÒ»¸öÐéÄâ×ù̸С×éÀ´ÌÖÂÛÓïÑÔ/ƽ̨µÄÑݱ估PHPÔÚÆóÒµ»·¾³ÏµÄÊÊÓÃÐÔ¡£
¡¡¡¡Zeev Suraski£¬Zend Technologies¹«Ë¾´´Ê¼ÈË£¬¸Ã¹«Ë¾Ö÷Òª¹Ø×¢PHPµÄ½øÕ¹¡£
¡¡¡¡Rob Nicholson£¬¸ß¼¶¼¼ÊõÑÐÔ±, ÔøΪIBM±àд¹ý³ÌÐòÉè¼ÆÓïÑÔÔËÐÐʱ¡£
¡¡¡¡Derick Rethans£¬PHP¿ª·¢Ð¡×é³ÉÔ±£¬eZ×é¼þµÄÏîÄ¿¸ºÔðÈË¡£
¡¡¡¡InfoQ£ºÆóÒµÈí¼þµÄÒ»¸ö¹Ø¼üÔªËؾÍÊÇ»¥²Ù×÷ÐÔ£¬Ëü¿ÉÒÔÈÃÈí¼þÓëÆäËûƽ̨½»»»ÐÅÏ¢¡£´ó¼Ò¶¼ÈÏΪPHPÔÚÕâ·½Ãæ±íÏÖÇ·¼Ñ£¬ÒòΪËüµÄWS-*Ö§³ÖÏà¶ÔÀ´Ëµ±È½ÏÐÂÇÒ¹¦ÄܽÏÉÙ£¬³ÉÊì¶È²»¸ß¡£¹ØÓÚÕâµãÄãÃÇÊÇÔõô¿¼ÂǵÄ?Ëü»á²»»áÓÐËù¸Ä±ä?
¡¡¡¡Zeev£ºÎÒ¾õµÃÏà±ÈWS-*¶øÑÔ£¬»¥²Ù×÷ÐÔÉæ¼°µÄÒª¸ü¼Ó¶àЩ¡£ÊÂʵÉÏ£¬ÎÒÃÇÖ»¿´µ½Á˺ÜÉٵĻùÓÚSOAPµÄWeb·þÎñÇëÇ󣬶ø¸ü¶àµÄÔòÀ´×ÔÓÚÆäËû±ê×¼£¬ÕâÖ÷ÒªÊÇÒòΪ²¿ÊðSOAPµÄ¹ý³Ì½ÏΪ¸´ÔÓ¡£PHP¼«ºÃµØÖ§³ÖÁË»¥²Ù×÷£¬²¢ÇÒΪ´ËÌṩÁ˺ܶ಻ͬµÄ½Ó¿Ú(REST£¬ÓÅÐãµÄXMLÖ§³Ö£¬SOAP£¬ÒÔ¼°Îªweb·þÎñÌṩµÄ ZF×é¼þµÈµÈ)¡£¾Ý˵PHP´Ó2004Ä꿪ʼ¾ÍΪSOAPÌṩÁ˷dz£ºÃµÄ»ù´¡Ö§³Ö£¬´Ó2006Ä꿪ʼ¾Íͨ¹ýAxis2À©Õ¹ÎªWS-*ÌṩÁ˹㷺µÄÖ§³Ö¡£ÎÒÖ»ÄÜ˵ÎÒ»¹´ÓûÓÐÅöµ½¹ýÓû§±§Ô¹È±·¦»¥²Ù×÷ÐÔµÄÇé¿ö£¬Èç¹ûÕæµÄÓУ¬ÄÇÒ²Ò»¶¨ÊÇÔÞÃÀ°É¡£
¡¡¡¡Rob£ºÎÒ¾õµÃÕâÖ»ÊDz¿·ÖÈ˵Ĺ۵㡣PHPÔ´ÓÚÆä¼òµ¥ÐÔ¡£ËüÊÇÒ»ÃÅÖ»Ðè±ØÒªµÄ¸´ÔӶȣ¬¾ÍÄÜ“½â¾öwebÎÊÌ┵ÄÓïÑÔ¡£Òò´ËPHP³ÌÐòÔ±»á¸ü¶àµÄÑ¡ÔñREST ¶ø²»ÊÇSOAP¡£´«Í³µÄÆóÒµÈí¼þÕýÖð²½ÏòλÓÚÖмäµÄPHP¿¿Â£¡£±È·½Ëµ£¬IBMµÄÐí¶àÆóÒµ¼¶Èí¼þ²úÆ·ÔÚÈ¥Ä궼ÌṩÁËRESTful½»»¥Ö§³Ö£¬°üÀ¨Atom ·¢²¼ÐÒ飬ÕâÑùµÄ»°¾Í¶àÁËÒ»¸öÑ¡Ôñ¡£ÔÚ¸ÃÓÃWS-*µÄµØ·½Ê¹ÓÃËü£¬¶øÔÚ¿ª·¢µÄ¼òµ¥ÐÔºÍËÙ¶ÈÖÁ¹ØÖØҪʱ£¬Ó¦Ê¹ÓÃREST¡£ÎÒÃÇÒ²ÈÄÓÐÐËȤµÄ¿´µ½ÁËPHP±»ÓÃÀ´Ö±½Ó¼ÓÇ¿ÆóÒµÁ¬Í¨ÐÔ¡£IBMµÄMessage Broker¿ÉÒÔµ±×÷Ò»¸ö“ÍòÄÜת»»Æ÷”£¬ËüÄܹ»½«Ò»¸ö¶«Î÷Á¬½Óµ½ÁíÍâÒ»¸ö¶«Î÷£¬¶øÏÖÔÚËüµÄÏûϢת»¯Á÷ÖÐÒ²ÌṩÁ˶ÔPHP¼ÆËã½ÚµãµÄÖ§³Ö¡£ËùÒÔÏÖÔÚÊÇ¿ÉÒÔÔÚÆóÒµÈí¼þÄÚ²¿ÖÐʹÓÃPHPÓïÑÔ¼òµ¥¶øÓÖÇ¿´óµÄÓï·¨ºÍÓï¾äµÄ¡£ÎÒÃÇ×î½üΪIBMµÄCISCÊÂÎñ´¦ÀíÆ÷·¢²¼ÁËÒ»¸öSupportPac£¬ÓÃÒÔÖ§³ÖPHPÓïÑÔ¡£CISCÕýÈçÈí¼þÒ»Ñù£¬¾ßÓГÆóÒµ¼¶“µÄÐÔÖÊ¡£ËüÔËÐÐÓÚÖ÷»úÉÏ£¬¿ÉÒÔÓÉһЩÏñÒøÐУ¬Õþ¸®ºÍÒ½ÁƱ£½¡²¿ÃŵÄ×éÖ¯À´Ê¹Óã¬ÓÃÒÔ´¦ÀíһЩ×îÖØÒªµÄ¿ÉÄÜÓ°Ïìµ½ÈÕ³£Éú»îµÄÊÂÎñ¡£
¡¡¡¡Derick£ºÎÒ¾õµÃÕâÀïûʲô̫´óÎÊÌâ¡£PHPÒѾΪËùÓеÄWS¼¼ÊõÈçSOAP£¬XML-RPCºÍJSONÌṩÁËÖ§³Ö¡£
¡¡¡¡Info
Ïà¹ØÎĵµ£º
ÓÐʱºònginx£¬apache£¬mysql£¬php±àÒëÍêÁËÏë¿´¿´±àÒë²ÎÊý¿ÉÒÔÓÃÒÔÏ·½·¨
nginx±àÒë²ÎÊý£º
#/usr/local/nginx/sbin/nginx -V
CODE:
nginx version: nginx/0.6.32
built by gcc 4.1.2 20071124 (Red Hat 4.1.2-42)
configure arguments: --user=www --group=www --prefix=/usr/local/nginx/ --with-http_stub_status_mo ......
PHP Security for Deployers
If you're a Developer
READ THIS and then work with your SysAdmins to step through any and all the layers of security designed to protect your apps.
Example:
Traffic must first pass through a SPI firewall (ensure that ONLY necessary ports/protocols are permitted; en ......
ÎÒ·¢ÏֺܶàµÄPHP³ÌÐòÔ±£¬ÓÈÆäÊÇѧϰ»¹²»ÊǺܾõģ¬¶¼²»ÖªµÀPHPµÄ¾«»ªËùÔÚ¡£Perlµ±ÄêÈçºÎÔÚÉ̽ç³öÃû£¿ÆäÇ¿´óµÄÕýÔò±í´ïʽ¡£¶øPHPÄØ£¿ËûÊÇÒ»ÃÅ´ÓUnixÏ·¢Õ¹ÆðÀ´µÄÓïÑÔ£¬µ±È»Ò²¾Í¼Ì³ÐÁËPerlµÄºÜ¶àÌص㣬ͬʱCµÄÓŵ㶼ÓС£¿ìËÙ¡¢¼ò½à¡¢Ã÷ÁË£¬ÓÈÆäÊÇC³ÌÐòÔ±£¬PHPÊÇÖÁ°®£¬ÎÒ¾ÍÊÇÉî°®×Å“PHP”£¨¶¼ÍüÁËÅ®ÓÑÁË:)£©¡ ......
Á¬½Ó£º
$conn=mysql_connect ("localhost:3306", "username", "password");
mysql_select_db("DBname");
¶Á£º
$exec="select * from stu";
$result=mysql_query($exec);
while($rs=mysql_fetch_object($result))
{
echo $rs->id." & ......