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Óï ......
PHPÌõ¼þÓï¾äµÄ½éÉÜÓëÓ¦ÓÃ
1¡¢if Ìõ¼þÓï¾ä
if(expr)
echo TRUE
else
echo FALSE
if(expr) {
echo TRUE
}else{
echo FALSE
}
f(expr) {
echo&n ......
´ËÎÄյݲװ·½·¨ÊÊÓÃÓÚ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 ......
Òý×Ô£ºhttp://blog.csdn.net/yizia/archive/2006/09/19/1248669.aspx
·ÃÎÊÔ¶³ÌÊý¾Ý¿âµÄÇé¿öÓÐÒÔϼ¸ÖÖ£º
1£©·ÃÎÊÔ¶³ÌÊý¾Ý¿âµÄaccessÊý¾Ý¿â
2£©·ÃÎÊÔ¶³ÌmssqlÊý¾Ý¿â»òoracleµÈÆäËû¹ØÏµÊý¾Ý¿â£¬µ«ÊÇÊý¾Ý¿âͨÐŶ˿ڱ»·À»ðǽ×èµ²»òÆäËûÍøÂçÔÒòÔì³ÉÎÞ·¨Ê¹Óøö˿Ú
±¾ÎĽöÔÚwindows2000 advance server,mdac2.8ϲâÊÔͨ¹ý£ ......
¡¡ASPÁ¬½ÓÊý¾Ý¿âµÄ11ÖÖ·½·¨——±¾ÎÄ×ܽáÁËʹÓÃASPÁ´½Ó¸÷ÖÖÊý¾Ý¿âµÄ·½·¨£º
¡¡¡¡1.AccessÊý¾Ý¿âµÄDSN-lessÁ¬½Ó·½·¨:
set adocon=Server.Createobject("adodb.connection")
adoconn.Open"Driver={Microsoft Access Driver(*.mdb)};DBQ="& _
Server.MapPath("Êý¾Ý¿âËùÔÚ·¾¶")
¡¡¡¡2.Access OLE DBÁ¬½Ó·½·¨£ ......