¼òµ¥ÉèÖÃIISÅäÖÃPHPµ÷ÊÔ»·¾³
»ùÓÚPHPÓïÑÔµÄÂÛ̳¿ÉÒÔ˵ÊÇÄ¿Ç°×ȫ¶øÇÒÖ´ÐдúÂëЧÂÊ×î¸ßµÄÂÛ̳ÁË£¬ºÍASPÏà±ÈËû¿ÉÒÔʵÏÖºÍMYSQL¸üºÃ½áºÏµÄÌص㣬½áºÏPHPMYADMIN¿ÉÒÔ¸üºÃµÄ¹ÜÀíºÍά»¤Êý¾Ý¿âÐÅÏ¢¡£Ò»°ãÇé¿öÏÂʹÓÃapacheºÍPHP´îÅä±È½Ï˳ÊÖ£¬²»¹ýºÜ¶àʱºòÓÉÓÚÌض¨ÒòËغÍÌõ¼þµÄ¾ÖÏÞ£¬ÎÒÃÇÒªÇóÔÚIIS»ù´¡ÉϽ¨Á¢PHPÓ¦Óû·¾³¡£½ñÌì±ÊÕß¾ÍΪ¸÷λ½éÉÜÈçºÎÔÚIISºÍWindowsϽ¨Á¢PHPÓ¦Óû·¾³¡£
Ò»¡¢»·¾³ÐèÇóºÍ×¼±¸¹¤×÷£º
±ÊÕßÑ¡ÔñÁËPHP5.2°æ±¾£¬¶øIISÔòÊÇXPϵͳ×Ô´øµÄIIS5¡£Ê×ÏÈÎÒÃÇÒª°²×°IIS×é¼þ£¬Ä¬ÈÏÇé¿öÏÂÔÚXPϵͳÊÇûÓа²×°µÄ.
µÚÒ»²½£ºÍ¨¹ý¿ØÖÆÃæ°åµÄÌí¼Ó/ɾ³ýWindows×é¼þÍê³ÉIIS×é¼þµÄ°²×°¹¤×÷¡£
µÚ¶þ²½£ºÔÚÌí¼Ó/ɾ³ýWindows×é¼þÑ¡Ïî´°¿ÚÖÐÎÒÃÇË«»÷InternetÐÅÏ¢·þÎñ£¨IIS£©£¬È»ºó°ÑÀïÃæµÄ°üÀ¨internetÐÅÏ¢·þÎñ¹ÜÀíµ¥Ôª£¬¹«ÓÃÎļþ£¬ÍòάÍø·þÎñÑ¡ÖС££¨Èçͼ1£©
ͼ1
µÚÈý²½£º²åÈëXP SP2ϵͳ¹âÅ̸´ÖƱØÐëÎļþµ½±¾µØÓ²ÅÌ£¬°²×°Íê±ÏºóÎÒÃÇ¿ÉÒÔ´Ó“¹ÜÀí¹¤¾ß”ÖеēinternetÐÅÏ¢·þÎñ”Æô¶¯IIS³ÌÐò¡££¨Èçͼ2£©
ͼ2
¶þ¡¢°²×°PHP³ÌÐò¼°ÉèÖãº
°²×°ºÃIISºóÎÒÃǾͿÉÒÔ·¢²¼ÏàÓ¦µÄÍøÕ¾ÁË£¬µ«ÊÇÕâʱ»¹ÎÞ·¨ä¯ÀÀPHPÓïÑÔ½¨Á¢µÄÒ³Ã棬ÎÒÃÇÐèÒªÏÈ°²×°PHP²¢ÉèÖñØÐëµÄ²ÎÊý¡£
µÚÒ»²½£ºÏÂÔØPHPÖ÷³ÌÐò£¬±ÊÕßʹÓõÄÊÇPHP 5.2£¬½âѹËõµ½±¾µØ´ÅÅÌcÅ̸ùĿ¼¡££¨Èçͼ3£©
ͼ3
µÚ¶þ²½£º½ÓÏÂÀ´½«PHPÎļþ¼ÐÖеÄphp.ini-dist¸´ÖƵ½C:\WINDOWSĿ¼Ï²¢¸ÄÃûΪphp.ini£¬¸´ÖÆphp5ts.dllºÍlIBMysql.dllÁ½¸öÎļþµ½
C:\WINDOWS\system32ÖС££¨Èçͼ4£©
ͼ4
µÚÈý²½£ºÎªÁËÈÃPHPÖ§³ÖMYSQLºÍGD¿âÐèÒª±à¼php.iniÎļþ£¬ÓüÇʱ¾´ò¿ª¸ÃÎļþ£¬²éÕÒ“extension_dir”£¬È»ºó°Ñextension_dir = "./"ÐÞ¸ÄΪextension_dir = "C:\php\ext"£»ÁíÍ⻹ÐèÒª°Ñ“;extension=php_mysql.dll”Ç°µÄ·ÖºÅÈ¥µô£¬¸Ä³Éextension=php_mysql.dll¡£°Ñ“;extension=php_gd2.dll”Ç°µÄ·ÖºÅҲȥµô£¬ÐÞ¸ÄΪextension=php_gd2.dll¡£
ÖÁ´ËÎÒÃǵÄPHP¾Í°²×°Íê³ÉÁË£¬µ«ÊÇÓÉÓÚĬÈÏÇé¿öÏÂIISÊDz»Ö§³ÖPHPµÄ£¬Ö»ÄÜÖ§³ÖASP¡£ËùÒÔ»¹ÐèÒªÎÒÃÇÏñ½¨Á¢CGIÄÇÑù´´½¨PHPµÄÓ³Éä¹Øϵ¡£
Èý¡¢ÅäÖÃIISµÄPHPÓ³É䣺
Ò»°ãÇé¿öÏÂÉèÖÃijÓïÑÔ»òÖ´ÐгÌÐòµÄÓ³Éä¹Øϵ¶¼ÊÇͨ¹ýISAPIɸѡÆ÷½â¾öµÄ£¬PHPÒ²²»ÀýÍâ¡£
µÚÒ»²½£º´ò¿ªIIS£¬ÔÚĬÈÏÍøÕ¾ÉϵãÓÒ¼üÑ¡Ôñ“ÊôÐÔ”¡££¨Èçͼ5£©
ͼ5
µÚ¶þ²½£ºÕÒµ½“Ö÷Ŀ¼”±êÇ©£¬µãÓÒϽǵēÅäÖÔ°´Å¥¡££¨Èçͼ6£©
Ïà¹ØÎĵµ£º
8 ·ÃÎÊÀàÐÍ
ÀàÐ͵ķÃÎÊÐÞÊηûÔÊÐí¿ª·¢ÈËÔ±¶ÔÀà³ÉÔ±µÄ·ÃÎʽøÐÐÏÞÖÆ£¬ÕâÊÇPHP5 µÄÐÂÌØÐÔ£¬µ«È´ÊÇOOPÓïÑÔµÄÒ»¸öºÃµÄÌØÐÔ¡£¶øÇÒ´ó¶àÊýOOP ÓïÑÔ¶¼ÒÑÖ§³Ö´ËÌØÐÔ¡£PHP5 Ö§³ÖÈçÏÂ3 ÖÖ·ÃÎÊÐÞÊηû£º
public(¹«Óеġ¢Ä¬ÈϵÄ)£¬private(˽ÓеÄ)ºÍprotected(Êܱ£»¤µÄ)ÈýÖÖ¡£
public ¹«ÓÐÐÞÊηû£¬ÀàÖеijÉÔ±½«Ã»ÓзÃÎÊÏÞÖÆ£¬ËùÓеÄÍⲿ ......
ÏÈ×¼±¸ºÃÈí¼þ£º
·Ö±ðÔÚApache¹Ù·½¡¢php¹Ù·½¡¢mysql¹Ù·½ÏÂÔØ×îлòÎȶ¨°æ±¾
Ò»¡¢°²×°Apache£¬ÅäÖóɹ¦Ò»¸öÆÕͨÍøÕ¾·þÎñÆ÷
ÔËÐÐÏÂÔغõēapache_2.0.55-win32-x86-no_ssl.msi”£¬³öÏÖÈçϽçÃ棺
³öÏÖApache HTTP Server 2.0.55µÄ°²×°Ïòµ¼½çÃ棬µã“Next”¼ÌÐø
È·È ......
Ê×ÏÈ×¢Òâ°æ±¾ÎÊÌ⣬һ¶¨Òª×Ðϸ²é¿´php manualÉϵÄÄÚÈÝ£¬Èçhttp://www.php.net/manual/en/install.windows.apache2.php ÉÏÓÐÒ»¸önote:
Note
:
Apache 2.2 Support
Users of Apache 2.2 should note that the DLL file for Apache 2.2 is
named php5apache2_2.dll
rather than php5apache2.d ......
<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"Cambria Mat ......
php±àÒëgd³ö´í!(Òѽâ¾ö)
ÔÚ32λubuntu9.04ÉϱàÒëphp5.2.12,µ½gdʱmake³ö´í:
ext/gd/libgd/.libs/gd_png.o: In function
`php_gd_gdImageCreatefromPngCtx':
/home/test/php-5.2.12/ext/gd/libgd/gd_png.c:142: undefined reference to
`png_check_sig'
collect2: ld returned 1 exit status
make: *** [sapi/cli/p ......