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

°²×°phpÖ§³Ömssql,curl,gd¿âµÈ

ÏÈ°²×°µÄzlib ./configure --prefix=/usr/local/zlib È»ºó×°µÄcurl ./configure --prefix=/usr/local/curl --with-zlib=/usr/local/zlib °²×°gdĬÈÏ°²×° ./configure --prefix=/usr/local/gd --with-zlib=/usr/local/zlib (ÓÐЩǰÃæÏÈ°²×°jepg,png...with¾Í¿ÉÒÔÁË,Ö®ºóphpµÄʱºò¿´./configure --helpÀïÃæÓоßÌåµÄ) °²×°freetdsÖ§³Ömssql ./configure --prefix=/usr/local/freetds \
--with-tdsver=8.0 \
--enable-msdblib \
--enable-dbmfix \
--with-gnu-ld \
--enable-shared \
--enable-static °²×°libmcrypt Ö§³Ömcrypt ./configure --prefix=/usr/local/freetds \ --disable-posix-threads ĬÈÏmysqlºÍapache¶¼ÊÇ°²×°ºÃµÄ ÈçÏÂÅäÖà ./configure --prefix=/usr/www/php \
--with-apxs2=/usr/www/apache/bin/apxs  \
--with-config-file-scan-dir=/etc/ \
--with-zlib=/usr/local/zlib \
--enable-bcmath \
--with-bz2 \
--with-curl=/usr/local/curl \
--enable-dbase \
--enable-exif \
--enable-ftp \
--with-pdo-dblib=/usr/local/freetds \
--with-pdo-mysql=/usr/www/mysql \
--with-gd=/usr/local/gd \
--enable-mbstring=cn \
--enable-calendar \
--enable-bcmath \
--with-libmbfl \
--with-mcrypt=/usr/local/libmcrypt \
-with-mssql=/usr/local/freetds \
-with-mysql=/usr/www/mysql/ \
--with-mysqli=/usr/www/mysql/bin/mysql_config \
--enable-embedded-mysqli=share \
--enable-soap \
--enable-sockets \
--with-xmlrpc \
--with-pear=/usr/www/php/PEAR\
--enable-zip $make $make install Ö®ºóÊÇÅäÖÃÎļþcp php.ini-dist /etc/php.ini#ÒòΪÎÒÔÚÇ°ÃæµÄ±àÒëÀïÉèÖÃÁËÔÚ/etcÖмÓÔØphp.ini ÐÞ¸ÄapacheµÄhttpd.confÈ·±£ÓÐÒÔÏÂÒ»ÐÐ,Ò»°ãĬÈÏÊÇÓÐµÄ LoadModule php5_module modules/libphp5.so Ìí¼ÓÈçÏÂ,ʹapacheÄܹ»½âÊÍ.php½áβµÄÎļþ SetHandler application/x-httpd-php ÕâʱºòÆô¶¯apacheÓ¦¸Ã¿ÉÒÔÁËÖ§³ÖphpÁË ÓбØÒªÉèÖÃÐéÄâÖ÷»úÐèÒª´ò¿ª¼ÓÔØvhostµÄ×¢ÊÍ È»ºó±à¼­apache/conf/extrahttpd-vhosts.conf Ìí¼ÓÓòÃûÖ§³Ö,ÕâÀï²»ÔÙ׸Êö,


Ïà¹ØÎĵµ£º

Php+Mysql×¢ÈëרÌâ

 Php×¢Èë¹¥»÷ÊÇÏÖ½ñ×îÁ÷ÐеĹ¥»÷·½Ê½£¬ÒÀ¿¿ËüÇ¿´óµÄÁé»îÐÔÎüÒýÁ˹ã´óºÚÃÔ¡£
ÔÚÉÏÒ»Æڵġ¶php°²È«Óë×¢ÉäרÌâ¡·ÖÐÁÖ.linxÖ÷Òª½²ÊöÁËphp³ÌÐòµÄ¸÷ÖÖ©¶´£¬Ò²½²µ½ÁËphp£«mysql×¢ÈëµÄÎÊÌ⣬¿ÉÊǽ²µÄ×¢ÈëµÄÎÊÌâ±È½ÏÉÙ£¬ÈÃÎÒÃǸоõûÓо¡ÐËÊÇ°É.
OK,ÕâÒ»ÆÚÎÒ½«¸ø´ó¼Ò»ï×Ð×ÐϸϸµÄ´µÒ»´µphp£«mysql×¢È룬һ¶¨ÈÃÄãÂúÔضø¹éŶ ......

PHPÈÕ³£¿ª·¢Ð¡¼¼ÇÉ

PHPÅúÁ¿È¡µÃcheckboxµÄÖµ
1¡¢ÃüÃû
<input type='checkbox' name='checkbox[]' value=$dwmyrow[banzhu] />
2¡¢Ê¹ÓÃ
µ±¼Æ»®µ±×÷sqlÖ¸ÁîµÄÒ»²¿·Öʱ£ºÈç¹û²ÎÓë¿ØÖƵÄ×Ö¶ÎÊÇÊýÖµÐ͵ģ¬Ôò
if(! empty($_POST['checkbox'])) {
$expr = join(",", $_POST['checkbox']);
$sql = "select * from tbl_name where field in ......

ÅäÖÃFCKÉÏ´«£¨PHP£©


ҪʹÄúµÄFCKeditorÄܹ»Ê¹ÓÃÉÏ´«¹¦ÄÜ£¬Äú±ØÐë½øÐÐÒÔÏÂÅäÖÆ¡£
×¢Ò⣺FCKeditor²»Ö§³ÖÐéÄâĿ¼£¬ÄúµÄ·¾¶ÉèÖö¼ÊÇÕë¶ÔÍøÕ¾¸ùĿ¼µÄ¾ø¶Ô·¾¶¶øÑԵġ£Õâµã¶ÔÓÚ·¢²¼µ½Ô¶³ÌÍøվĿ¼µÄ¿ª·¢Õß¼«Îª²»±ã£¬ºóÃæÎÒÃÇ»á¶Ô´Ë½øÐÐÌÖÂÛ¡£
Ò»¡¢´ò¿ªfckeditor\editor\filemanager\upload\php\config.php£¬ÕÒµ½´úÂë$Config['Enabled']£¬½«Öµ ......

Apache URL RewriteÅäÖÃ(php α¾²Ì¬)

Ò»°ãÇé¿öÏ£¬ÔÚ¿ª·¢»·¾³ÖзÃÎÊÒ»¸ö¾ßÌåÉÌÆ·µÄURLÊÇÕâÑùµÄ£º
http://localhost/phptest/show.php?id=1
µ«ÊÇÎÒÐèÒª¸ü¸ÄÒ»ÏÂURL£¬¶ÔËÑË÷ÒýÇæ¸üÓѺã¬È磺
http://localhost/phptest/1.html
ÕâÖ»ÊǾÙÀý°ÕÁË¡£
ÏÂÃæÎÒÃÇÀ´¿´¿´£¬ÕâÁ½ÌìÁ´½Ó×îºó´ïµ½µÄЧ¹ûÊÇÒ»ÑùµÄ£¬Çë×¢Òâä¯ÀÀÆ÷µØÖ·£¡
1¡¢Õý³£·ÃÎÊ£º
2¡¢Î±¾²Ì¬ºó£º
½ÓÏÂÀ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ