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

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

/*
>>> Author: Áõ³¿êÍ 
>>> Date   : 2009-07-05
>>> EMAIL :
huichengongzi@gmail.com
>>> תÔØÇë×¢Ã÷³ö´¦£¬Ð»Ð»ºÏ×÷£¡
*/
ÅäÖÃphp.iniÎļþ £¨ÒÔÉÏ´«500MÒÔÏ´óСµÄÎļþΪÀý£©
²éÕÒÒÔÏÂÑ¡Ïî²¢ÐÞ¸Ä->
       file_uploads = On               ;´ò¿ªÎļþÉÏ´«Ñ¡Ïî
       upload_max_filesize = 500M   ;ÉÏ´«ÎļþÉÏÏÞ
Èç¹ûÒªÉÏ´«±È½Ï´óµÄÎļþ£¬½ö½öÒÔÉÏÁ½Ìõ»¹²»¹»£¬±ØÐë°Ñ·þÎñÆ÷»º´æÉÏÏÞµ÷´ó£¬°Ñ½Å±¾×î´óÖ´ÐÐʱ¼ä±ä³¤
       post_max_size = 500M          ;postÉÏÏÞ
       max_execution_time = 1800     ; Maximum execution time of each script, in seconds½Å±¾×î´óÖ´ÐÐʱ¼ä
       max_input_time = 1800   ; Maximum amount of time each script may spend parsing request data
       memory_limit = 128M      ; Maximum amount of memory a script may consume (128MB)ÄÚ´æÉÏÏÞ


Ïà¹ØÎĵµ£º

PHPÊֲᷭÒëÈÕ¼Ç [6] Èô¸É½á¹¹¸Ä±ä

¹úÇ쳤¼Ù½«ÖÁ£¬ÕæÊÇ¿ªÐÄ¡£ÕâÁ½ÌìÓеãС¿Õ£¬·­ÒëÁËÊÖ²áÖеÄһЩÄÚÈÝ£¬ËãÊǸøPHPerÃǵÄÒ»¸öСÀñÎï¡£
±¾À´Ïë°ÑËùÓÐPHP5.3µÄÐÂÄÚÈݸø¸üÐÂÁË£¬µ«·¢ÏÖÊÖ²áÓкܴóµÄ¸Ä¶¯£¬ÓÈÆäÊÇһЩĿ¼½á¹¹Éϵķ¢¶¯¡£±ØÐëÏȸúÉÏÕâЩ¸Ä¶¯£¬·ñÔò±àÒë»á³ö´í£¬¸ü̸²»ÉϽøÒ»²½µÄ·­Òë¡£
ÕâÁ½ÌìÖ÷Òª×öÁËÒÔϹ¤×÷£º
1. ½«·­Òëƽ̨ǨÒƵ½SVN
PHP¹Ù·½µÄ ......

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ÈÕ³£¿ª·¢Ð¡¼¼ÇÉ

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

PHP³ÌÐò61ÌõÃæÏò¶ÔÏó·ÖÎöÉè¼ÆµÄ¾­ÑéÔ­Ôò (ת)

 
Äã²»±ØÑϸñ×ñÊØÕâЩԭÔò£¬Î¥±³ËüÃÇÒ²²»»á±»´¦ÒÔ×Ú½ÌÐÌ·£¡£µ«ÄãÓ¦µ±°ÑÕâЩԭÔò¿´³É¾¯Á壬ÈôÎ¥±³ÁËÆäÖеÄÒ»Ìõ£¬ÄÇô¾¯Áå¾Í»áÏìÆð ¡£ ----- Arthur J.Riel
 
(1)ËùÓÐÊý¾Ý¶¼Ó¦¸ÃÒþ²ØÔÚËùÔÚµÄÀàµÄÄÚ²¿¡£
 
(2)ÀàµÄʹÓÃÕß±ØÐëÒÀÀµÀàµÄ¹²Óнӿڣ¬µ«À಻ÄÜÒÀÀµËüµÄʹÓÃÕß¡£
 
(3)¾¡Á¿¼õÉÙÀàµÄЭÒéÖÐµÄ ......

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ºÅ