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

¹ØÓÚCentOSƽ̨php¼ÓÈëpdo_mysqlÖ§³Ö

»·¾³£ºÔÚlinux ϵͳϰ²×°ºÃPHP+mysql +apache»·¾³·¢ÏÖPHPûÓÐÖ§³Öpdo_mysqlÀ©Õ¹ÓÚÊǾö¶¨ÖØÐ±àÒëPHP,ÆäÖÐmysql²ÉÓÃrpm·½Ê½°²×°
³¢ÊÔ£º./configure --with-apxs2=/usr/local/apache/bin/apxs  --with-iconv --with-oci8=instantclient,/usr /lib/oracle/10.2.0.1/client/lib   --with-mysql=/usr/local/mysql   --with-gd=shared --with-zlib-dir=/usr --enable-gd-native-ttf --with-freetype-dir=/usr/local/modules/freetype --with-ttf --with-jpeg-dir --with-png-dir --with-gd=/usr/local/modules/gd --with-jpeg-dir=/usr/local/modules/jpeg6 --with-zlib   --enable-magic-quotes --enable-ftp --with-iconv --enable-mbstring --with-pdo-mysql=/usr/local/mysql
±àÒë´íÎ󱨸棺Can't find mysql installation.
´íÎóÔ­Òò£º²ÉÓÃrpm·½Ê½°²×°mysql£¬ÎÞ·¨¶¨Î»×¼È·µÄmysql°²×°Ä¿Â¼¡£
½â¾ö°ì·¨£ºÏÂÁËÒ»¸öÃâ°²×°°æmysqlµ½Linuxϵͳ£¬½âѹºó·ÅÈë/usr/local/mysql,ÔٴαàÒëphp³É¹¦¡£
ÖØÆôapache£¬·ÃÎÊspeedCmsϵͳ£¬ÏµÍ³±¨¸æ´íÎó£º
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)
¾­¹ý²éѯ£¬·¢ÏÖʹÓÃrpm°²×°Ä£Ê½µÄmysqlÆämysql.sockÎļþµÄ¾ßÌåλÖÃÔÚ /var/lib/mysql/mysql.sock
ÓÉÓÚphp³ÌÐòĬÈϲéÕÒ/tmp/mysql.sock ,´ËÎļþÓÖ²»´æÔÚ£¬ËùÒÔ±¨´í¡£
½â¾ö°ì·¨£ºÖ´ÐÐÒÔÏÂÃüÁÁ¢Á´½Ó£¬ÎÊÌâ½â¾ö¡£
ln -s  /var/lib/mysql/mysql.sock /tmp/mysql.sock


Ïà¹ØÎĵµ£º

PHPÍøÕ¾¿ª·¢¹ý³ÌÖÐ×¢ÒâÕâЩ°²È«ÖªÊ¶

1¡¢¹ÅÀÏµÄÆÛÆ­SQLÓï¾ä
ÔÚĬÈÏģʽÏ£¬¼´Ê¹ÊÇÄãÍüÁ˰Ñphp.ini¿½µ½/usr/local/lib/php.iniÏ£¬php»¹ÊÇ´ò¿ªmagic_quotes_gpc=on¡£
ÕâÑùËùÓдÓGET/POST/CookieÀ´µÄ±äÁ¿µÄµ¥ÒýºÅ(')¡¢Ë«ÒýºÅ(")¡¢·´Ð±¸Übackslash(\)ÒÔ¼°¿Õ×ÖÔªNUL
(the null byte)¶¼»á±»¼ÓÉÏ·´Ð±¸Ü£¬ÒÔʹÊý¾Ý¿âÄܹ»ÕýÈ·²éѯ¡£
µ«ÊÇÔÚphp-4-RC2µÄʱºòÒýÈë ......

ÖØÈ¼ÄãµÄPHP°²È«Ö®»ð

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

php´óÎļþµÄÉÏ´«

1.ʹÓÃPHPµÄ´´Ê¼ÈË Rasmus Lerdorf дµÄAPCÀ©Õ¹Ä£¿éÀ´ÊµÏÖ£¨http://pecl.php.net/package/apc£©
APCʵÏÖ·½·¨£º
°²×°APC£¬²ÎÕÕ¹Ù·½Îĵµ°²×°£¬¿ÉÒÔʹÓÃPECLÄ£¿é°²×°·½·¨¿ìËÙ¼ò½Ý£¬ÕâÀﲻ˵Ã÷
ÅäÖÃphp.ini£¬ÉèÖòÎÊý apc.rfc1867=1 £¬Ê¹APCÖ§³ÖÉÏ´«½ø¶ÈÌõ¹¦ÄÜ£¬ÔÚAPCÔ´Âë˵Ã÷ÎĵµÀïÃæÓÐ˵Ã÷
´úÂë·¶Àý£º
¸´ÖÆPHPÄÚÈݵ½¼ô ......

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

PHPÉÏ´«Îļþ´óСÏÞÖÆ

/*
>>> Author: Áõ³¿êÍ 
>>> Date   : 2009-07-05
>>> EMAIL :
huichengongzi@gmail.com
>>> ×ªÔØÇë×¢Ã÷³ö´¦£¬Ð»Ð»ºÏ×÷£¡
*/
ÅäÖÃphp.iniÎļþ £¨ÒÔÉÏ´«500MÒÔÏ´óСµÄÎļþΪÀý£©
²éÕÒÒÔÏÂÑ¡Ïî²¢ÐÞ¸Ä->
       file_upload ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ