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

phpÏòMySQL²åÈëÊý¾Ý²»È« ½â¾ö·½·¨

½ñÌìΪÁËһЩÒÑÓÐÊý¾Ýµ¼ÈëMYSQLµÄÊý¾Ý¿â£¬ÎÒдÁËÒ»¸öºÜ¼òµ¥µÄPHP³ÌÐò¡£
³ÌÐò˼·ºÜ¼òµ¥£¬¾ÍÊǶÁÒ»ÌõÊý¾Ý£¬È»ºóÍùMYSQLÀï²åÈëÒ»Ìõ¡£
½á¹û×ÜÊÇ·¢ÏÖ Ã¿´Îµ¼ÈëÖ»Äܵ¼Èë2000Ìõ£¬¾Í×Ô¶¯Í£Ö¹ÁË£¬¶øÇÒûÓÐÈκÎÌáʾ¡£
ÔÚÍøÉÏËѽâ¾ö·½°¸¸÷ÖÖËѲ»µ½¡£
¸Õ¿ªÊ¼»³ÒÉÊÇÄڴ滺³å¸øÉÙÁË£¬µ÷ÁËһϣ¬»¹ÊDz»ÐС£¡£
×îºó·¢ÏÖÒ»¸ö¹æÂÉ£¬¾ÍÊÇÿ´Î¶ÔÊý¾Ý¿â²Ù×÷µ½60ÃëµÄʱºò³ÌÐò¾Í×Ô¶¯ÖÐÖ¹ÁË¡£
²éÁËһϣ¬×îºóÐÞ¸ÄÁËphp.iniµÄ max_input_time ²ÎÊý¡£
¸Ã²ÎÊý˵Ã÷ÈçÏÂ
; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; Note: This directive is hardcoded to -1 for the CLI SAPI
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
Ò»¸ö¿Í»§¶ËÔÚÏò·þÎñÆ÷ÊäÈëÊý¾ÝµÄʱºò£¬Õâ¸ö²ÎÊý¹æ¶¨ÁËÒ»´Î×î´óÁ¬Ðø²Ù×÷ʱ¼ä¡£
Èç¹û³¬¹ý¸Ãʱ¼ä£¬½«×ÔÐÐÖÐÖ¹¡£


Ïà¹ØÎĵµ£º

PHP³ÌÐòÔ±×îÒ×·¸10ÖÖ´íÎó


1.²»×ªÒâhtml entities
Ò»¸ö»ù±¾µÄ³£Ê¶£ºËùÓв»¿ÉÐÅÈεÄÊäÈ루ÌرðÊÇÓû§´ÓformÖÐÌá½»µÄÊý¾Ý£© £¬Êä³ö֮ǰ¶¼Òª×ªÒâ¡£
echo $_GET['usename'] ;
Õâ¸öÀý×ÓÓпÉÄÜÊä³ö£º
<scrīpt>/*¸ü¸ÄadminÃÜÂëµÄ½Å±¾»òÉèÖÃcookieµÄ½Å±¾*/</scrīpt>
ÕâÊÇÒ»¸öÃ÷ÏԵݲȫÒþ»¼£¬³ý·ÇÄã±£Ö¤ÄãµÄÓû§¶¼ÕýÈ·µÄÊäÈë¡£ ......

PHPº¯ÊýµÄ¶¨ÒåÓëʹÓÃ

Ô­ÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/2010/02/10/1-13/
PHPÖÐÒ»¸ö»ù±¾µÄ½Å±¾ÓÉÁ½²¿·Ö×é³É£ºÖ÷³ÌÐòºÍº¯Êý¡£
º¯Êý²»½ö¿ÉÒÔ¹¹³ÉÒ»¸öPHP½Å±¾µÄ»ù±¾¹¦ÄÜ£¬Ò²Ê¹µÃ³ÌÐò½á¹¹»¯£¬ÓÐÖúÓÚ³ÌÐò´úÂëµÄÖØÓá£
PHPº¯ÊýµÄµ÷ÓÃ
ͨ¹ý°´ÕÕº¯Êý¸ñʽд³öº¯ÊýÒÔ¼°ÏàÓ¦µÄ²ÎÊý¼´¿É£¬ÒÂÓï·¨ÈçÏ£º
String¡¡substr(string¡¡str,int¡¡start) ......

php tips

5.¹ØÓÚ±íµ¥Ë¢ÐÂ
ÎÊ£ºÎªÊ²Ã´ÎÒÔÚµã»÷ä¯ÀÀÆ÷µÄºóÍË°´Å¥ºó£¬ËùÓÐ×ֶεÄÐÅÏ¢¶¼±»Çå¿ÕÁË£¿
´ð£ºÕâÊÇÓÉÓÚÄãÔÚÄãµÄ±íµ¥Ìá½»Ò³ÃæÖÐʹÓÃÁË session_start º¯Êý¡£¸Ãº¯Êý»áÇ¿ÖƵ±Ç°Ò³Ãæ²»±»»º´æ¡£½â¾ö°ì·¨Îª£¬ÔÚÄãµÄ Session_start º¯Êýºó¼ÓÈë header("Cache-control: private"); ×¢ÒâÔÚ±¾ÐÐ֮ǰÄãµÄPHP³ÌÐò²»ÄÜÓÐÈκÎÊä³ö¡£
²¹³ä£º ......

mysql µ¼Èë¡¢µ¼³öÊý¾Ý¿â¡¢±í

DOS¡¡´°¿Ú
¿ªÊ¼£­£¾ÔËÐУ­£¾¡¡cmd
µ¼³öΪ£º¡¡mysqldump -u Óû§Ãû -p  --opt  Êý¾Ý¿âÓû§Ãû >
Êý¾Ý¿âÃû.sql
ÊäÈëÄãµÄÊý¾Ý¿âÃÜÂë!phpma.com
µ¼ÈëΪ£ºmysql -u Óû§Ãû -p Êý¾Ý¿âÓû§Ãû < Êý¾Ý¿âÃû.sql
£¨Òª
ÔÚµ±Ç°Ä¿Â¼Ï²Ù×÷£©
ÒªÏ뽫Îı¾Îļþ

pet.txt

×°Ôص½
pet
±íÖУ¬Ê¹Ó ......

MySqlÖеÄÄ£ºý²éѯ

ÔÚMySqlÖеÄÄ£ºý²éѯºÍÔÚMSSQLÖеIJ¶à£¬±¾¼Ç¼Ö÷ÒªÊÇ˵ÔÚJDBCÖÐʹÓÃPreparedStatementÀ´¹¹ÔìÒ»¸öÄ£ºý²éѯµÄÓï¾ä¡£
Ä£ºý²éѯSQLÓï¾ä£ºSELECT * from tableA WHERE colA LIKE '%ҪƥÅäµÄÄÚÈÝ%'
¹¹ÔìPreparedStatement£º
String sql = "SELECT * from tableA WHERE colA LIKE [-ÕâÀïÌîʲôÄØ£¿-]";
PreparedS ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ