Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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°²È«Ö®»ð

¶ÔÓڽű¾°²È«Õâ¸ö»°ÌâºÃÏñÓÀԶûÍêûÁË£¬Èç¹ûÄã¾­³£µ½¹úÍâµÄ¸÷ÖÖ¸÷ÑùµÄbugtraqÉÏ£¬Äã»á·¢ÏÖÓÐÒ»°ëÒÔÉ϶¼ºÍ½Å±¾Ïà¹Ø£¬ÖîÈçSQL
injection£¬XSS£¬Path Disclosure£¬Remote commands executionÕâÑùµÄ×ÖÑ۱ȱȽÔÊÇ£¬ÎÒÃÇ¿´ÁËÖ®ºóµÄÓÃ;ÄѵÀ½ö½öÊÇ×¥È⼦?¶ÔÓÚÎÒÃÇÏë×öweb°²È«µÄÈËÀ´Ëµ£¬×îºÃ¾ÍÊÇÄÃÀ´Ñ§Ï°
£¬¿ÉÊÇÍòÎï×¥¸ùÔ´£¬ÎÒà ......

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 ......

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

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

Dompdf for PHP & Replace Url to link

If you want to put some big table in the pdf file, you may got the layout messy. One way to solve the problem is to change the paper size.  In "includes/cpdf_adapter.cls.php", Change the size you used in the array to whatever you want.
One tip: Replace Url into Clickable link.
$tex ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ