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

PHP»·¾³ÅäÖÃ

apache_2.2.8+ mysql_5.1.41+ php-5.2.12+ phpMyAdmin-3.2.5
1,°²×°apacheĬÈϰ²×°¼´¿É
2,°ÑÏÂÔØµÄphp5.2.12½âѹ°Ñ½âѹÎļþ¼ÐµÄËùÓÐÎļþ¸´ÖƵ½DÅÌPHPÎļþ¼ÐÖÐ:
3,´ò¿ªPHPÎļþ¼ÐÖаÑphp.ini-dist¸ÄΪphp.ini²¢´ò¿ª²¢°Ñ
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_ming.dll
extension=php_mysql.dll
extension=php_xmlrpc.dll
ÎļþÍ·µÄ·ÖºÅÈ¥µô£»
ÅäÖÃϵͳ»·¾³±äÁ¿
ÎҵĵçÄÔÓÒ¼ü ¸ß¼¶ »·¾³±äÁ¿
ÔÚpathºóÃæ¼ÓÉÏ;D:\PHP;D:\PHP\ext
 4£¬½«D:\php\ ϵÄphp5ts.dll¡¢libmysql.dll¸´ÖƵ½WindowsµÄsystem32Îļþ¼ÐÏÂ
5£¬½«D:\php\ϵÄphp.ini¸´ÖƵ½Windows
6, ´ò¿ªApacheÅäÖÃÎļþhttpd.conf
ÔÚ#LoadModule ssl_module modules/mod_ssl.soºó¼ÓÉÏһϴúÂ룺
LoadModule php5_module "D:/PHP/php5apache2_2.dll"
PHPIniDir "D:/PHP/"
7£¬²¢ÕÒµ½AddType application/x-gzip .gz .tgzÔÚºóÃæ¼ÓÉÏ
    AddType application/x-httpd-php .php
8£¬ÕÒµ½DirectoryIndexÌõÄ¿£¬¸Ä³ÉÒÔÏÂÄÚÈÝ
 DirectoryIndex index.html index.html  index.php
 
9£¬±£´æÎļþ£¬È»ºóÖØÐÂÆô¶¯Apache·þÎñÆ÷
10 ²âÊÔ
ÔÚApache°²×°Ä¿Â¼ÏÂÕÒµ½htdocs½¨Á¢index.phpÎļþ
 <?php
            phpinfo();
 ?>
 
11£¬×îºó£¬ÔÚä¯ÀÀÆ÷ÊäÈëÍøÖ·http://localhost/index.php£¬Äã»á¿´µ½Ïà¹ØPHPÐÅÏ¢µÄÒ³Ãæ
12£¬¹§Ï²Ä㣬ÅäÖóɹ¦£¡
 
ÐéÄâĿ¼ÉèÖÃ
apacheϵÄÉèÖãº
   1: ÉèÖÃÒªWEBä¯ÀÀµÄ·¾¶ £¨apache£©Ï嵀 confÎļþ httpd.conf  ·½·¨£º²éÕÒDOCUMENTROOT ½«d:/apache/install/htdocs
      ¸ÄΪ:e:/phpcode(Ò²¾ÍÊÇÄãÒÔºóÓÃä¯ÀÀµÄÎļþ¼ÐµÄĿ¼)
    2£º²éÕÒ directory
       ½«  Directory d:/apache/install/htdocs     ¸ÄΪ  e:/phpcode  (Ò²¾ÍÊÇÄãÒÔºóÓÃä¯ÀÀµÄÎļþ¼ÐµÄĿ¼)
 
    3£ºÈÃapacheʶ±ðPHPÎļþ
        ²éÕÒ£ºloadmodule¼ÓÈëÒ»¾ä loadmodule php5_module "D:/php5/php5apache2_2.dll "
      ¼ÓÈëÒ»¾ä &


Ïà¹ØÎĵµ£º

¡¾×ª¡¿PHP & Web Service[³õ¼¶]

ǰÑÔ
¡¡¡¡
¡¡¡¡·Ï»°²»¶à˵£¬WebServiceÕâ¸öÈȰ¡£¬PHPÕâ¸ö»ð°¡£¬ÏëÓÃPHP¿ª·¢WebServiceÊÇÀíËùµ±È»µÄÊ¡£Ê²Ã´£¿²»¶®WebService£¿Ã»Ê£¬°Ù¶ÈһϾÍÖªµÀÁË¡£°¡£¿¿´²»¶®£¿²»¶®Ò²Ã»¹ØÏµ£¬Ö±½Ó¿´´óÉÙүдµÄ°É£º£©
¡¡¡¡´óÉÙÒ¯ÊǸö¼¤½ø·Ö×Ó£¬Ï²»¶Ö±½ÓÄôúÂë˵Ê£¬²»¹ýÔÚ°Ñ¿ÉÁ¯µÄ¶ÁÕßŪµÃһͷÎíˮ֮ǰ£¬»¹ÊÇÏÈ´óÖÂ˵һϱ¾ÎĵÄÄ¿ ......

PHP¸ß¼¶Óï·¨£¨Èý£©—— ÃæÏò¶ÔÏó£¨ÖУ©

4 ·â×°
·â×°ÐÔÊÇÃæÏò¶ÔÏó±à³ÌÖеÄÈý´óÌØÐÔÖ®Ò»£¬·â×°ÐÔ¾ÍÊǰѶÔÏóµÄÊôÐԺͷþÎñ½áºÏ³ÉÒ»¸ö¶ÀÁ¢µÄÏàͬµ¥Î»£¬²¢¾¡¿ÉÄÜÒþ±Î¶ÔÏóµÄÄÚ²¿Ï¸½Ú£¬Ê¹¶à¸öϵͳģ¿é¶ÔÏóÐγÉÒ»¸öËÉñîºÏµÄ¹ØÏµ¡£·â×°°üº¬Á½¸öº¬Òå:1.°Ñ¶ÔÏóµÄÈ«²¿ÊôÐÔºÍÈ«²¿·þÎñ½áºÏÔÚÒ»Æð£¬ÐγÉÒ»¸ö²»¿É·Ö¸îµÄ¶ÀÁ¢µ¥Î»£¨¼´¶ÔÏ󣩡£2.ÐÅÏ¢Òþ±Î£¬¼´¾¡¿ÉÄÜÒþ±Î¶ÔÏóµÄÄÚ²¿Ï¸½ ......

PHP¸ß¼¶Óï·¨£¨ËÄ£©—— ÃæÏò¶ÔÏó£¨Ï£©

8 ·ÃÎÊÀàÐÍ
ÀàÐ͵ķÃÎÊÐÞÊηûÔÊÐí¿ª·¢ÈËÔ±¶ÔÀà³ÉÔ±µÄ·ÃÎʽøÐÐÏÞÖÆ£¬ÕâÊÇPHP5 µÄÐÂÌØÐÔ£¬µ«È´ÊÇOOPÓïÑÔµÄÒ»¸öºÃµÄÌØÐÔ¡£¶øÇÒ´ó¶àÊýOOP ÓïÑÔ¶¼ÒÑÖ§³Ö´ËÌØÐÔ¡£PHP5 Ö§³ÖÈçÏÂ3 ÖÖ·ÃÎÊÐÞÊηû£º
public(¹«Óеġ¢Ä¬ÈϵÄ)£¬private(˽ÓеÄ)ºÍprotected(Êܱ£»¤µÄ)ÈýÖÖ¡£
public ¹«ÓÐÐÞÊηû£¬ÀàÖеijÉÔ±½«Ã»ÓзÃÎÊÏÞÖÆ£¬ËùÓеÄÍⲿ ......

PHP·ÖÒ³´úÂë PHP·ÖÒ³Àà PHP·ÖҳʵÀý

PHP100·ÖÒ³´úÂëÐ޸İ棬Ëãαԭ´´°É
ÏÂÃæÊDzâÊԵĹý³Ì:
Îļþpage.php,´úÂëÈçÏÂ:
<?php
/*
* author£ºphp100.com ÂÛ̳ nicholas_ng
*/
function page($page,$total,$phpfile,$pagesize=3,$pagelen=3){
$pagecode = '';//¶¨Òå±äÁ¿£¬´æ·Å·ÖÒ³Éú³ÉµÄHTML
$page = intval($page);//±ÜÃâ·ÇÊý×ÖÒ³Âë
$total = intval($ ......

phpºÍapache°æ±¾Æ¥ÅäÎÊÌâ(¸ãÁËÒ»ÕûÌì,×°ÁËÒ»´Îϵͳ)

1:·ÅÁË6¸öÎļþÔÚcÅÌÏÂ(php5ts.dll,libmysql.dll ,php_gd2.dll,php_mysql.dll,php_mbstring.dll ),Ò»¸öÔÚwindowsÏÂ,ÁíÎå¸öÔÚwindows/system32ÏÂ
2:ÅäÖÃÁËpath
3:ÃüÁî:httpd.exe -w -n "Apache2" -k start À´²é¿´ÊÇÄÄÒ»ÐеĴíÎóÐÅÏ¢.
×ܽá:µ½ÏÖÔÚΪֹ,ÕûÁËÒ»Ìì,×°ÁËÈý´ÎϵͳµÄÂé·³ÖÕÓÚÇ×ÉíÖ¤Ã÷ÁË,
Õâ¸ö×ï¿ý»öÊײúÉúµÄÔ­Òò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ