PHP»·¾³´î½¨
http://www.521000.com/bbs/dispbbs.asp?BoardID=9&ID=1236357
PHP»·¾³´î½¨
ApacheµÄ°²×°ÓëÅäÖÃ
Ò»¡¢ApacheµÄ°²×°
1.´ÓApacheµÄ¹Ù·½ÍøÕ¾ÏÂÔØ°²×°Èí¼þ£ºhttp://httpd.apache.org/download.cgi£¬Ä¿Ç°µÄ×îа汾ÊÇapache_2.2.11-win32-x86-no_ssl.msi¡£
2.´ò¿ªÎҵĵçÄÔ£¬½øÈëDÅÌ£¬ÔÚÆäÏÂн¨Ò»¸öÎļþ¼Ð£¬ÃûΪ local¡£
3.ÔËÐÐÏÂÔغõēapache_2.2.11-win32-x86-no_ssl.msi”£¬°´3´ÎNext°´Å¥£¬°²×°³ÌÐòÒªÇóÊäÈëÄãµÄNetwork Domain£¨ÍøÂçÓòÃû£©¡¢Server Domain£¨·þÎñÆ÷ÓòÃû£©ºÍÍøÕ¾¹ÜÀíÔ±µÄE-mail£¬µ±ÏµÍ³³öÏÖ¹ÊÕÏʱ,»á½«¹ÊÕÏÐÅÏ¢·¢Ë͵½ÌṩµÄµç×ÓÓʼþµØÖ·£¬ÈýÌõÐÅÏ¢¾ù¿ÉÈÎÒâÌîд£¬ÎÞЧµÄÒ²ÐС£
4.½øÈëNextºó£¬Ä¬Èϵݲװ·¾¶ÊÇ"C:\Program Files\Apache Software Foundation\Apache2.2\"£¬Ð޸ķ¾¶£¬¸ÄΪǰÃæËùÊöµÄ"D:\local\Apache2"¡£
5.È»ºóһ·NextÏÂÈ¥£¬Ö±µ½°²×°Ïòµ¼³É¹¦Íê³É£¬ÕâʱÓÒϽÇ״̬À¸»á³öÏÖApacheµÄÂÌɫͼ±ê£¬±íʾApache·þÎñÒѾ¿ªÊ¼ÔËÐУ¬°´“Finish”½áÊøApacheµÄÈí¼þ°²×°¡£
6.´ò¿ªIE£¬È»ºóÔÚµØÖ·À¸ÊäÈ룺"http://localhost" »òÕß "http://127.0.0.1" ¿ÉÒÔ¿´µ½Apache°²×°Íê³ÉµÄ³É¹¦Ò³Ã棻ÒÔºóÍøÒ³µÄ´æÔÚλÖþÍÔÚ "D:\local\Apache2\htdocs" Ŀ¼¡£
¶þ¡¢ApacheµÄÅäÖÃ
1.´ò¿ªµçÄÔ “¿ªÊ¼”->“ËùÓгÌÐò”->“Apache HTTP Server 2.2”->“Configure Apache Server”->“Edit the Apache httpd.conf Configuration file”£¬µã»÷´ò¿ªÅäÖÃÎļþ¡£»òÕßÖ±½Ó·ÃÎÊD:\local\Apache2\confĿ¼ÕÒµ½ httpd.confÎļþ¡£
2.²éÕҹؼü×Ö“DocumentRoot”£¨ÍøÕ¾¸ùĿ¼£©£¬ÐÞ¸Ä""ÄڵĵØַΪÄãµÄÍøÕ¾¸ùĿ¼¡££¨×¢ÒâÔÚApacheÀïÎļþµØÖ·Òª¸Ä³É“/”£©¡£
3.²éÕҹؼü×ÖDirectoryIndex£¨Ä¿Â¼Ë÷Òý£¬Ò²¾ÍÊÇÔÚ½öÖ¸¶¨Ä¿Â¼µÄÇé¿öÏ£¬Ä¬ÈÏÏÔʾµÄÎļþÃû£©£¬¿ÉÒÔÌí¼ÓºÜ¶à£¬ÏµÍ³»á¸ù¾Ý´Ó×óÖÁÓÒµÄ˳ÐòÀ´ÓÅÏÈÏÔʾ£¬ÒÔµ¥¸ö°ë½Ç¿Õ¸ñ¸ô¿ª£¬±ÈÈçÓÐЩÍøÕ¾µÄÊ×Ò³ÊÇindex.htm£¬¾ÍÔÚ¹â±êÄÇÀï¼ÓÉÏ“index.htm ”ÎļþÃûÊÇÈÎÒâµÄ£¬²»Ò»¶¨·ÇµÃ“index.html”£¬±ÈÈç“test.php”µÈ£¬¶¼¿ÉÒÔ¡£
4.ÅäÖÃÍê³Éºó£¬ÖØÆôApache£¬ËùÓеÄÅäÖþÍÉúЧÁË£¬ÄãµÄÍøÕ¾¾Í³ÉÁËÒ»¸öÍøÕ¾·þÎñÆ÷£¬Èç¹ûÄã¼ÓÔØÁË·À»ðǽ£¬Çë´ò¿ª80»ò8080¶Ë¿Ú£¬»òÕßÔÊÐíApache³ÌÐò·ÃÎÊÍøÂ磬·ñÔò±ðÈ˲»ÄÜ·ÃÎÊ¡£
Èý¡¢Apache·þÎñµÄжÔØ
1.´ò¿ªµçÄÔ “¿ªÊ¼
Ïà¹ØÎĵµ£º
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 92160 bytes) in :\Inetpub\wwwroot04\test.php on line 8
Fatal error: Out of memory (allocated 259,260,416) (tried to allocate 16 bytes) in C:\Inetpub\wwwroot04\test.php on line 8
//ini_set('memory_limit', '-1');
$inde ......
Win2003server ϼÜÉèPHPWind²úÆ·»·¾³
°²×°Ç°×¼±¸:1¡¢°²×°ºÃiis6
&nbs ......
<?php
// ½«Êý×éת»»³ÉJson¸ñʽ£¬ÖÐÎÄÐèÒª½øÐÐURL±àÂë´¦Àí
function Array2Json($array) {
arrayRecursive($array, 'urlencode', true);
$json = json_encode($array);
$json = urldecode($json);
// extÐèÒª²»´øÒýºÅµÄboolÀàÐÍ
&n ......
9.3 ͨ¹ýPHP²Ù×÷AccessÊý¾Ý¿â
9.3.1 Á¬½ÓAccessÊý¾Ý¿â
ÔÚPHPÖÐÁ¬½ÓAccessÓÐÈçÏÂ3ÖÖ·½Ê½¡£
£¨1£©´´½¨ÏµÍ³Êý¾ÝÔ´£¬ÓÃPHPÌṩµÄODBCº¯Êý
¼´¿É¡£
£¨2£©Í¬Ñù¿ÉÒÔʹÓÃPHPµÄODBCº¯Êý£¬µ«²»´´½¨
Êý¾ÝÔ´¡£¿ª·ÅÊý¾Ý¿âÁ¬½Ó£¨Open DateBase
Conection£¬ODBC£©ÊÇWindows Open
Server£¨¿ª·Å·þÎñ£©API£¨WOSA£©²úÆ·Ö®Ò ......
GD¿âÊÇPHP½øÐÐͼÏó²Ù×÷Ò»¸öºÜÇ¿´óµÄ¿â¡£
ÏÈÔÚphp.iniÀïÔö¼ÓÒ»ÐÐÒýÓãºextension=php_gd2.dll
ÖØÆôapache¡£×öÒ»¸ö²âÊÔÒ³ var_dump(gd_info());Êä³öÊý¾Ý±íÃ÷GD¿âÒýÓóɹ¦¡£
±íµ¥auth.html
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
< ......