Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

windows 7ÏÂÈçºÎ°²×°Apache + PHP + MySQL + SVNµÈµÈ

½üÀ´¶Ôphp±È½Ï¸ÐÐËȤ£¬¾Í¶Ï¶ÏÐøÐøµÄ»¨ÁËÁ½¸öÐÇÆÚµÄʱ¼ä°ÑÕû¸öphp¿ª·¢ÐèÒªÓõ½µÄ¶«Î÷¶¼×°ºÃÁË£¬´ó¸ÅµÄ°²×°¹ý³ÌÈçÏ¡£
Ò»¡¢°²×°µÄÈí¼þ:
Apache: 2.2.14
PHP:5.2.12
MySQL:5.1.42¡£
SVN:1.5.6
PHPMyAdmin:3.2.5
Zend Studio: 7.1
Zend Debugger: 5.1.14
¶þ¡¢°²×°¹ý³Ì£º
1. °²×°ºÍÅäÖÃapache
°²×°£ºÊ×ÏÈ´Óhttp://apache.etoak.com/httpd/binaries/win32/apache_2.2.14-win32-x86-openssl-0.9.8k.msiÏÂÔØapacheµÄwindows°²×°°æ±¾£¬Ë«»÷°²×°³ÌÐò£¬Ëü½«Òýµ¼ÄãÍê³ÉÕû¸ö°²×°¹ý³Ì£¬Çë±£Ö¤ÄãÊäÈëµÄ·þÎñÆ÷urlÊÇÕýÈ·µÄ¡£ÔÚ°²×°¹ý³ÌÖУ¬Î¨Ò»ÐèҪעÒâµÄ¾ÍÊÇÈç¹ûÒѾ­ÓÐÒ»¸öIIS»òÕßÆäËüµÄ³ÌÐòʹÓÃÁË80¶Ë¿Ú£¬ÄÇô°²×°»áʧ°Ü¡£Èç¹ûÕâÑù£¬Çëµ½³ÌÐòµÄĿ¼Ï£¨±¾ÀýΪ£ºD:\Program Files\Apache Software Foundation\Apache2.2£©£¬ÕÒµ½confĿ¼£¬´ò¿ªÎļþhttpd.conf£¬½«ÆäÖеÄÒ»ÐÐListen 80¸ÄΪһ¸öû±»Õ¼ÓõĶ˿ڣ¬Èç±¾ÀýΪListen 8080¡£È»ºóÔÙÖØÐÂÔËÐа²×°³ÌÐò£¬Õâ´ÎÓ¦¸Ã¾ÍûÎÊÌâÁË
°²×°½áÊøºóÔÚä¯ÀÀÆ÷ÊäÈëhttp://localhost:8080£¬Èç¹û³ÊÏÖÁËÒ»¸öÒѾ­ÅäÖúõÄÍøÕ¾£¬ÄÇô¹§Ï²Ä㣬ÄãµÄapache¾ÍËã°²×°³ÉÁË¡£
ÅäÖãºapacheµÄÅäÖù¤×÷Ö÷ÒªÊÇÐÞ¸Ähttpd.conf¡£ ´ò¿ªApacheµÄ°²×°Ä¿Â¼, ÕÒµ½Îļþ /conf/httpd.conf, ´ò¿ªËü½øÐÐÅäÖõı༭. ÅäÖÃÎļþÖжÔÓÚ¸÷ÏÓбȽÏÏêϸµÄÃèÊö, ÔÚÅäÖýáÊøÖ®ºó¿ÉÒÔÔËÐпªÊ¼²Ëµ¥ÖÐApache°²×°Îļþ¼ÐÖеÄTest Configuration¹¤¾ßÀ´¼ìÑéÅäÖÃÎļþÊÇ·ñÕýÈ·. Èç¹ûÅäÖò»ÕýÈ·»á¸ø³ö¼òÒªµÄ˵Ã÷. Èç¹ûÔÚÅäÖýáÊøÖ®ºóͨ¹ýÁËTest Configuration¹¤¾ß, µ«ÊÇÈÔÈ»²»Äܹ»Ë³ÀûÔËÐÐApache, ¿ÉÒÔµ½[Apache°²×°Ä¿Â¼]/logs/ Õâ¸öĿ¼Öв鿴¼Ç¼, ÒÔÕÒ³öÎÊÌâËùÔÚ¡£
Ö÷ÒªµÄÅäÖþÍÊÇÉèÖÃapacheµÄÎĵµÄ¿Â¼ºÍÐéÄâ·¾¶¡£ÕÒµ½DocumentRoot, ĬÈϵÄÓ¦¸ÃÊÇDocumentRoot "D:/Program Files/Apache Software Foundation/Apache2.2/htdocs"£¬ÕâÀÎÒÃǽ«ËüÉèÖóÉ×Ô¼ºÏ²»¶µÄ¹¤×÷·¾¶¡£±¾ÀýΪDocumentRoot "D:/Workspace"¡£ÖØÆôapache£¬ºÃÁË£¬ÏÖÔÚÈç¹ûÄã°Ñindex.htmlÎļþ·Åµ½D:/WorkspaceĿ¼Ï£¬ÎÒÃǾͿÉÒÔͨ¹ýhttp://localhost:8080/index.htmlÀ´·ÃÎʸÃÎļþ¡£Æä´Î£¬ÕÒµ½#Alias /webpath /full/filesystem/pat£¬½«Ç°ÃæµÄ#È¥µô£¬¸ÄΪÒÔÏÂÐéÄâĿ¼Alias /Webpath/ "D:/Data"£¬ÖØÆôapache£¬ÔÚä¯ÀÀÆ÷ÖÐÊäÈëhttp://localhost:8080/data/µÄʱºò¾Í»á·ÃÎÊ·þÎñÆ÷µÄ"D:/Data"Ŀ¼
2. °²×°ºÍÅäÖÃphp
°²×°£ºÊ×ÏÈÇëÈ¥www.php.netÍøÕ¾ÏÂÔØphp°²×°³ÌÐò¡£Ä¿Ç°µÄ°²×


Ïà¹ØÎĵµ£º

²é¿´mysql°æ±¾µÄËÄÖÖ·½·¨

ת×Ô£ºhttp://www.yayu.org/look.php?id=113
1£ºÔÚÖÕ¶ËÏ£ºmysql -V¡£
ÒÔÏÂÊÇ´úÂëƬ¶Î£º
[shengting@login ~]$ mysql -V
mysql  Ver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i686)
    2£ºÔÚmysqlÖУºmysql> status;
ÒÔÏÂÊÇ´úÂëƬ¶Î£º
mysql> status;
--------------
mysql  ......

ÓÉdzÈëÉî½²½âMySQLÊý¾Ý¿âË÷ÒýµÄÑ¡ÔñÐÔ Êý¾Ý¿âË÷Òý

ÔÚMySQLÖУ¬¶ÔÓÚË÷ÒýµÄʹÓò¢ÊÇÒ»Ö±¶¼²ÉÓÃÕýÈ·µÄ¾ö¶¨¡£
¡¡¡¡¼òµ¥±íµÄʾÀý£º
¡¡¡¡create TABLE `r2` (
¡¡¡¡ID` int(11) DEFAULT NULL,
¡¡¡¡ID1` int(11) DEFAULT NULL,
¡¡¡¡CNAME` varchar(32) DEFAULT NULL,
¡¡¡¡KEY `ID1` (`ID1`)
¡¡¡¡) ENGINE=MyISAM DEFAULT charSET=latin1
¡¡¡¡select count(*) from r2;
¡¡ ......

PHPÊý¾Ý½á¹¹——¶þ·Ö²éÕÒÓë˳Ðò²éÕÒ

<?php
//--------------------
// »ù±¾Êý¾Ý½á¹¹
//--------------------
//¶þ·Ö²éÕÒ£¨Êý×éÀï²éÕÒij¸öÔªËØ£©
function bin_sch($arr, $low, $high, $k) {
if($low<=$high) {
$mid = intval(($low+$high)/2);
if($arr[$mid] == $k) {
return $mid;
} elseif($k<$ ......

PHPÊý¾Ý½á¹¹——ðÅÝÅÅÐòÓë¿ìËÙÅÅÐòµÄ±È½Ï

//ðÅÝÅÅÐò£¨Êý×éÖÐʵÏÖ£©
function bubble_sort($arr) {
$cnt = count($arr);
if($cnt<=0) return false;
for($i=0; $i<$cnt;$i++) {
for($j=$cnt-1; $j>$i;$j--) {
if($arr[$j]<$arr[$j-1]) {
$tmp = $arr[$j];
$arr[$j] = $arr[$j ......

php ¹ÙÍø½éÉÜ

ÿ¸öÈ˶¼ÖªµÀphp.net£¬ÎÒÃÇ»òÔç»òÍíµÄ¶¼»áÀ´µ½ÕâÀï²¢²»¶ÏµÄ·ÃÎÊËü¡£ËüÊÇPHPerµÄÖ÷Òª²Î¿¼ÍøÕ¾£¬ÓµÓдóÁ¿ÓÐÓõÄÐÅÏ¢£¬µ«ÊÇÕâЩÐÅϢȴ²»ÊÇÄÇôÏÔ¶øÒ×¼û¡£
±È½ÏÓÐÓõĹٷ½PHP×ÊÔ´£º
PHP¹Ù·½º¯ÊýÊÖ²áÏÂÔØ£º http://www.php.net/download-docs.php
 °üº¬×îеÄchmÖÐÎÄ°æ±¾£¬HTML°æ±¾
ÖÐÎĺ¯ÊýÊֲ᣺http://www.php.net/m ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ