ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[Âà¶K] PHP¤W¶ÇÀɮתº­­¨î»P­×§ï

[Âà¶K] PHP¤W¶ÇÀɮתº­­¨î»P­×§ï

»s§@PHPºô­¶¤]«Ü±`¥Î¨ìªº¤@­Ó¥\¯à´N¬O§Q¥Îªí³æ¤W¶ÇÀÉ®×
¤×¨ä¬O¹³¦Û»s¬Ûï¡B¼v­µªº¸Ü
ÀÉ®×»´«h1~5MB
¤jªº¸Ü20MB¥H¤W³£¦³

µM¦ÓApache¥»¨­¬O¦³­­¨îÀɮפW¶Çªº
¥]¬AÀɮפj¤p¡B¤W¶Ç®É¶¡¬O§_·|time outµ¥µ¥ªº

©Ò¥H¦b»s§@«e
­n±qphp.ini¨Ó§@­×§ï¡G

(¥i¥H±qµ{¦¡¶°¸ÌªºAppServ¡÷Configuration Server¡÷PHP Edit the php.ini)
(©Î¬Oª½±µ¨ìC¼Ñªºwindows¸ê®Æ§¨¸Ìªºphp.ini)

­n­×§ïªº¥]¬A¥H¤U´X¶µ
max_execution_time
max_input_time
memory_limit
post_max_size
upload_max_filesize
default_socket_timeout
mysql.connect_timeout


¥i¥H§Q¥Î Ctrl + F ¦bphp.ini¸Ì¤@¶µ¤@¶µ´M§ä

¦U­Ó°Ñ¼Æ¥Nªí²[¸q
1. max_execution_time
Script°õ¦æ®É¶¡¤W­­(³æ¦ì¡G¬í)

§â¼Æ¦r§ï¦¨ max_execution_time = 300

2. max_input_time
Script³B²z¸ê®Æ®É¶¡¤W­­(³æ¦ì¡G¬í)
§â¼Æ¦r§ï¦¨  max_input_time = 300





3. memory_limit
¨t²Î°O¾ÐÅé(ª`·N¡A³o­Óªº­È¤@©w­n³]¤ñ¤U­±¨â¶µªº­È³£¤j)
§â¼Æ¦r§ï¦¨ memory_limit = 800M





4. post_max_size
¨Ï¥Îªí³æªºfileÄæ¦ì®É¬O¥ÎPOST¶Ç­È
³o­Ó¥i³]©wPOSTµo°e®Éªº®e¶q
§â¼Æ¦r§ï¦¨ post_max_size = 200M





5. upload_max_filesize
³æ¦¸¤W¶ÇÀÉ®×®e¶q

§â¼Æ¦r§ï¦¨ upload_max_filesize = 200M

6. default_socket_timeout
SocketµL¦^À³Â_½u®É¶¡(³æ¦ì¡G¬í)
§â¼Æ¦r§ï¦¨ default_socket_timeout = 300



7. mysql.connect_timeout
µL¦^À³Â_½u®É¶¡(³æ¦ì¡G¬í¡F-1¥Nªí¤£Â_½u¤@ª½µ¥)
§â¼Æ¦r§ï¦¨ mysql.connect_timeout = -1

TOP

¸É¤W¸ê®Æ¨Ó·½

http://belleaya.pixnet.net/blog

TOP

        ÀR«ä¦Û¦b : µoµÊ®ð¬Oµu¼ÈªºµoºÆ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD