ÅäÖÃAPACHEʹÆäÖ§³ÖphpµÄ³É¹¦¾Ñé
ÅäÖÃAPACHEʹÆäÖ§³ÖphpµÄ³É¹¦¾Ñ飨ֻÊǹؼü²¿·ÖÅäÖ㬲¢·ÇÕû¸öÅäÖùý³Ì£©
»·¾³£º
WinXP sp3
Apache2.2
php-5.2.2-Win32.zip½âѹĿ¼D£º\PHP
ÔÚApacheµÄhttpd.confÎļþÖвÉÈ¡ÓüÓÔØÄ£¿éµÄ·½Ê½ÔÚÎļþÖÐÌí¼ÓÓï¾ä£º
LoadModule php5_module "D:/PHP/php5apache2-2.dll"
×¢ÒâÕâÀïÒ»¿ªÊ¼ÎÒÌí¼ÓµÄÊÇD:/PHP/php5apache2.dllÕâ¸ö¿â£¬µ«ApacheÆô¶¯µÄʱºò×ܱ¨´í˵ÎÞ·¨¼ÓÔØÕâ¸ö¿â¡£
»¹ÓÐÔÚhttpd.confÖмÓÉÏÒ»¾ä£º
AddType application /x-httpd-php.php
ÕâÒ»¾äºÜÏÔÈ»ÊÇÌí¼ÓAphche½âÎöÎļþµÄÀàÐ͵ģ¬ÕâÀïÎÒÌí¼ÓµÄÊÇ.phpÀàÐÍÎļþ¡£
£¨ÆäËüÅäÖùý³ÌÓëÍøÉϲ鵽µÄ×ÊÁÏÏàͬ£©
Ïà¹ØÎĵµ£º
basename: ·µ»Ø²»º¬Â·¾¶µÄÎļþ×Ö·û´®¡£
chgrp: ¸Ä±äÎļþËùÊôµÄȺ×é¡£
chmod: ¸Ä±äÎļþµÄÊôÐÔ¡£
chown: ¸Ä±äÎļþµÄÓµÓÐÕß¡£
clearstatcache: Çå³ýÎļþ״̬¿ìÈ¡¡£
copy: ¸´ÖÆÎļþ¡£
delete: ÎÞÓõÄÏîÄ¿¡£
dirname: È¡µÃ·¾¶ÖеÄĿ¼Ãû¡£
diskfreespace: È¡µÃĿ¼ËùÔÚµÄÊ£Óà¿ÉÓÿռ䡣
fclose: ¹Ø±ÕÒÑ´ò¿ªµÄ ......
phpÁ¬½Óaccess
$conn=new COM("ADODB.Connection");
$dsn="DRIVER={Microsoft Access Driver (*.mdb)};DBQ=".realpath("data.mdb").";Uid=Admin; Pwd=BDC2002Data;";
$conn->open($dsn);
$sql="select * from dict";
$rs=$conn->Execute($sql);
$row="0";
while(!$rs->EO ......
php°²×°
# tar xzvf php-5.2.5.tar.gz
# cd php-5.2.5
./configure --prefix=/home/redadmin/php --with-apxs2=/home/redadmin/apache/bin/apxs --with-mysql=/home/redadmin/mysql --enable-mbstring=all --enable-track-vars
# make && make install
# cp php.ini-dist /home/redadmin/php/lib/php.ini
# c ......
ż¶û×ö¸ö¼òµ¥µÄWEB·þÎñ²âÊÔ³ÌÐò£¬ÎÒ»¹ÊÇϲ»¶²ÉÓÃPHP¡£¼ò½à£¬·ç¸ñºÍC/C++½Ó½ü£¬ÉÏÊֿ죬¶øÇÒ¿âÒ²ºÜÆëÈ«¡£ÒÔǰΪ¹ã¶«Òƶ¯×öÒƶ¯ÐÐÒµÖն˵ÄÑÝʾ³ÌÐòʱ£¬²ÉÓùúÄÚÒ»¸öÐÖµÜдµÄFleaPHP¿ªÔ´¿ò¼Ü£¬Á½Öܲ»µ½µÄʱ¼ä£¬ÎÒ´ÓÒ»¸ö¶ÔPHPÒ»ÎÞËùÖªµÄˮƽ£¬¿ìËٵĸ㶨ÁË30¶à¸öÒ³ÃæµÄºǫ́£¬ºóÀ´ÑÝʾЧ¹ûÒ²²»´í£¬Ò²ºÜÎȶ¨£¬´Ó´Ë¶ÔPHPÓÐÁ ......
½ñÌì·ÏÁËÒ»ÌìµÄʱ¼äÀ´´Óаѻ·¾³´î½¨ºÃ£º×ö¸ö±Ê¼Ç
°²×°Ë³Ðò£º
apache->php->mysql
һЩעÒâµÄµØ·½¼ÇÏÂÀ´°É£º
1. apache Ö§³Ö php
apache ÅäÖÃÎļþÏ£ºÐèÒªÐ޸ĵĵط½£º
i. PHPIniDir "F:/programs/php/"
&n ......