PHP±ÈASPÓÅÐãµÄÆ߸öÀíÓÉ
ÄÏÈý·½
ASPÊÇ΢Èí¹«Ë¾ÊµÏÖ¶¯Ì¬ÍøÒ³µÄÒ»ÖÖ¼¼Êõ¡£
ASPÖ§³ÖһЩ½Å±¾ÓïÑÔ£¬Ö÷ÒªÒÔVBScriptΪÖ÷¡£
ÓëASPÏà±È½Ï£¬Ä㻹¿ÉÒÔÑ¡ÔñÁíÒ»Öпª·ÅÔ´´úÂë±à³ÌÓïÑÔ——PHP£¬PHP¿ÉÒÔÔËÐÐÔÚ¶àÖÖ²Ù×÷ϵͳÏ£¬ÆäÖаüÀ¨LinuxºÍwindows¡£
ËäÈ»ASPÊÇÒ»ÖÖ²»´íµÄ¼¼Êõ£¬µ«´Ó³¤Ô¶¿¼ÂÇÎÒÏàÐÅPHPÔÚ½«À´µÄ¼¼ÊõÁìÓòÀï»áÓв»·²µÄ±íÏÖ¡£
ÎÒÈÏΪÓÐÆ߸öÀíÓÉ¿ÉÒÔ˵Ã÷PHP±ÈASP¸üÓÅÐ㣺
1¡¢Ëٶȡ¢Ëٶȡ¢ËÙ¶È
µ±ÎÒµÚÒ»´ÎÔËÐÐPHP½Å±¾³ÌÐòʱ£¬ÎÒ²»½û¶Ô×Ô¼ºËµ£º“Ì«¿ìÁË”£¬µ±Ê±ÎÒÊÇÔÚÒÇ̬166MHZµÄ»úÆ÷ÉÏÔËÐÐÎҵijÌÐòµÄ£¬µ«ÔËÐеÄËÙ¶ÈÈÔÈ»ºÜ¿ì¡£
ASPÊÇÓÀÔ¶Ò²²»»áÏóPHPÕâÑù¿ìµÄ£¬ÒòΪASPÊǽ¨Á¢ÔÚCOMÌåϵ½á¹¹Ö®Éϵġ£µ±ÓÃVBScriptдASP½Å±¾Ê±£¬Êµ¼ÊÉÏʵÔÚʹÓÃCOMµÄ¶ÔÏ󣬵±ÏòÓû§ä¯ÀÀÆ÷·¢ËÍÐÅϢʱ£¬ËüÓõÄÊÇResponse¶ÔÏóµÄwrite·½·¨£¬µ±Ëü·ÃÎÊÊý¾Ý¿âºÍÎļþϵͳµÄʱºò£¬ËüÓõÄÊÇÆäËûµÄCOM¶ÔÏó¡£ÕâЩCOM¶ÔÏóµÄʹÓÃʹÔËÐÐËÙ¶ÈϽµ¡£
ÔÚPHP´úÂëÖУ¬ËùÓеŤ×÷¶¼ÔËÐÐÔÚPHPµÄÄÚ´æ¿Õ¼äÖУ¬Ò²¾ÍÊÇ˵PHP²»ÊÇ»ùÓÚCOM¶ÔÏóµÄ£¬ËùÒÔµÄËûµÄÔËÐÐËٶȻá¿ìһЩ¡£
ÏÂÃæÊÇÎÒÃÇÔÚMSSQL7 40´ÎÔËÐÐÒ»¸ö²éѯÓï¾äµÄÖ´ÐÐʱ¼äͳ¼Æ£º
ÓÃPHP Querying MSSQL7 ʱ¼ä(Ãë)
ÓÃMSSQL extension 01.88
ÓÃODBC extension 09.54
ÓÃODBC via COM (ADO) 17.28
ÓÃOLEDB via COM 06.19
µ±ÎÒÃÇʹÓÃPHP.ODBC,·ÃÎÊÊý¾Ý¿âÓÃÁË9.54Ã룬¶øÓÃCOM½Ó¿ÚÈ¥Á¬½ÓÊý¾Ý¿âÐèÒª±ÈPHPËùÓõÄʱ¼ä¸ß80%¡£
OLEDBÊÇ΢ÈíµÄÒ»ÖÖ¸ßËÙ·ÃÎÊÊý¾Ý¿âµÄ¼¼Êõ£¬Ëû±ÈODBCÒª¿ì¡£µ«µ±ÎÒÃÇËùPHPºÍOLEDBµÄЧÂÊʵÑéʱ£¬½á¹ûÊÇPHPµÄÕûÌåÐÔÄܱÈOLEDB¸ß200%£¬Èç´ËµÄ³öÒ»¸ö½áÂÛ£¬Èç¹û²»²ÉÓÃCOM¿ÉÒÔ»ñµÃ½Ï¿ìµÄÖ´ÐÐËٶȡ£
µ±È»PHPµÄÖ´ÐÐËٶȻ¹²»ÊÇ×î¿ìµÄ£¬µ«ÎÒÃDzŸոտªÊ¼Æð²½£¬ÎÒÃÇ»áÖð²½µÄÍêÉÆËû£¬¶øÇÒPHPÊÇÒ»ÖÖ¿ª·ÅÔ´´úÂë±à³ÌÓïÑÔ£¬ÊÀ½çÉÏÐí¶à³ÌÐòÔ±ÔÚ²»¶ÏµÄÍêÉÆËûµÄ¼¼Êõ£¬ÏàÐÅËûÒ»¶¨»á±È·Ç¿ª·ÅÔ´´úÂëϵͳ»ñµÃ¸ü¸ßµÄÖ´ÐÐËٶȵġ£
2¡¢¸ß¼¶ÄÚ´æ¹ÜÀí
ÔÚIIS4Ï£¬Ò»¸öASP½Å±¾header.asp£¬Èç¹û±»20¸öÒ³ÃæËù°üº¬£¬ÄÇôÔËÐеÄʱºò£¬ÔÚÄÚ´æµ±ÖлᱣÁôÕâ20¸öheader.aspµÄ±àÒ븱±¾£¬IIS5½â¾öÁËÕâ¸öÎÊÌ⣬µ«Ö»ÓÐwindows2000²ÅÖ§³ÖIIS5£¬ÓÉÓÚÕâÖÖIIS5µÄ²»ÄÜÏòϼæÈݵÄÔÒò£¬Ðí¶à·þÎñÆ÷ÈÔȻҪʹÓÃIIS4ϵĵͼ¶µÄÄÚ´æ¹ÜÀí¡£
¶øÔÚPHPÖУ¬²»»á´æÔÚÕâÖÖÎÊÌ⣬ֻÓе±requireʱ£¬²Å»áµ÷ÓÃij¸öincludeÎļþ¡£
3¡¢Ã»Óкó¹ËÖ®ÓÇ
Îҷdz£Ô÷ºÞµÄÒ»¼þÊÂÇé¾ÍÊÇ»áÂòµ½Ò»¼þ²»·ÅÐĵIJúÆ·£¬±ÈÈçµ±ÄãÂòÁËÒ»Á¾Æû³µ£¬µ«ÓÉÓÚ·¢¶¯»úÊÇ»µµÄ£¬Ä
Ïà¹ØÎĵµ£º
×î½üÒ»Ö±ÔÚ×ö×Ô¼ºµÄͼÊéÕ¾£¬·Ö±ðʹÓùý½ÜÆæºÍ¶Á°ÉÁ½Ìײ»Í¬µÄϵͳ£¬¶ÔÓÚÕâÁ½Ì×ϵͳҲÊÇÓÖ°®ÓÖºÞ£¬°®µÄÊÇËûÃǵŦÄÜÇ¿´ó£¬ºÞËûÃǶ¼Í¬ÊôûÓпªÔ´¾«ÉñµÄ²úÎï¡£ºÇºÇ£¬×÷ΪһÃûÇî³ÌÐòÔ±£¬°³¿ÉÒÔÀí½â×÷ÕߵĿàÖÔ£¬ÕâÀï¾Í²»ÅúÅÐÁË¡£
Äê¼ÙÆڼ䣬ÎÞÊ¿É×ö£¬·¿´×Ô¼ºÒÔÇ°µÄ²É¼¯´úÂ룬·¢Ïֺܶà¿ÉÒÔÓÅ»¯ºÍÌáÉýµÄµØ·½£¬¾Í¼òµ¥×öÁËÏÂÓÅ» ......
phpÅäÖÃÌ«¸´ÔÓÁË,×òÌìÍíÉÏÅäÖÃÁË°ëÌ컹ûÓгɹ¦!²»µÃ²»Ñ°Çó¸ü¼òµ¥µÄ½â¾ö·½·¨:WampServer 5 ¼¯³É»·¾³
Wamp5ÊÇApache+PHP+Mysql ÔÚWindowsϵļ¯³É»·¾³£¬ÓµÓмòµ¥µÄͼÐκÍ
²Ëµ¥°²×°¡£¸Ã°æ±¾¼¯³ÉÁËPHP5.2.5 Mysql5 Apache2 phpMyAdmin 2.11.2.1
SQLiteManager 1.2.0 ÂúÁ˴󲿷ÖPHPerµÄÐèÇó.
´ÓÓï·¨ÉÏ¿´£¬PHPÓïÑÔ½üËÆÓÚCÓï ......
ÔÚ±à³Ì¹ý³ÌÖУ¬¾³£ÐèÒªÒ³ÃæÖ®¼äµÄ´«Öµ£»ÌرðÊÇÖÐÎÄ´«µÝµÄʱºò£¬¾³£³öÏÖÂÒÂëÏÖÏ󣬺ÜÊÇÓôÃÆ¡£ÏÂÃæÊÇÎÒÔÚÍøÉÏÕÒµ½µÄһЩ·½·¨£¬¹©´ó¼Ò²Î¿¼¡£
1.ÉèÖÃweb.configÎļþ¡££¨Ã»ÓÐÓùý£©
<system.web>
......
<globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" fileEncoding="gb2 ......
PHPÑ»·Óï¾äµÄ½éÉÜÓëÓ¦ÓÃ
1¡¢break n Ñ»·¿ØÖÆÓï¾ä
Break Ìø³öÒ»²ã£¨±¾´Î£©Ñ»·;break n Ìø³ön²ãÑ»·;
2.Continue:continue ÔÚÑ»·½á¹¹ÓÃÓÃÀ´Ìø¹ý±¾´ÎÑ»·ÖÐÊ£ÓàµÄ´úÂë²¢ÔÚÌõ¼þÇóֵΪÕæʱ¿ªÊ¼Ö´ÐÐÏÂÒ»´ÎÑ»·¡£×¢:×¢ÒâÔÚ PHP ÖÐ switch Óï¾ä±»ÈÏΪÊÇ¿ÉÒÔʹÓà con ......
´ËÎÄյݲװ·½·¨ÊÊÓÃÓÚWindows XP
쵀Apache+PHP+MySQL
°²×°£¬Í¬Ê±Ò²ÊÊÓÃÓÚWindows 2003
ϵͳϵݲװºÍÅäÖá£
1.
°²×°»·¾³
²Ù×÷ϵͳÊÇ Windows XP
ÖÐÎÄ°æ, Apache,
PHP, MySQL
µÄ×îа汾ÊǽØÖ¹µ½ 2007.09.07
£¬·Ö±ðÔÚÆä¹ÙÍøÏÂÔصÄ:
* Apache 2.2.6
£ºhttp://apache.mirror.phpchina.c ......