|
 |
|
Fatal error Fatal error: Maximum execution time of 30 seconds exceeded in 'xxx' |
|
 |
|
|
 |
 |
|
เป็นการ error จากการรันเกินเวลาที่กำหนดไว้ ซึ่งเริ่มต้นคือ 30 วินาที ส่วนใหญ่เป็นเพราะการอัพโหลดไฟล์ขนาดใหญ่
แก้ไขโดยเพิ่ม
set_time_limit(ตัวเลขเป็นวินาที);
กรณีคุณ น่าจะเกิดจาก infinity loop
ลองเช็คดูครับ
|
 |
 |
 |
 |
Date :
2009-08-27 15:43:20 |
By :
lozomac |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
$i == $x[k] > $i == $x[$k]
|
 |
 |
 |
 |
Date :
2009-08-27 15:44:17 |
By :
lozomac |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
set_time_limit(ตัวเลขเป็นวินาที);
ใส่ตรงไหนหรอคะ
พอแก้ตาม $i == $x[k] > $i == $x[$k] ก้อยังขึ้นเหมือนเดิมค่ะ (ยังไม่ได้ใส่ set_time_limit(ตัวเลขเป็นวินาที);)
|
 |
 |
 |
 |
Date :
2009-08-27 16:04:20 |
By :
pochiiez |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
บนสุดก็ได้ครับ
|
 |
 |
 |
 |
Date :
2009-08-27 16:17:25 |
By :
lozomac |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เอ่อ ให้แก้ $i == $x[k] เป้น $i == $x[$k] นะครับ
|
 |
 |
 |
 |
Date :
2009-08-27 16:18:26 |
By :
lozomac |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไว้บสุดแล้วค่ะ ก่อน include "connect.php"
แล้วก้อแก้เป็น $i==$x[$k] แล้ว
ก้อไม่ได้ค่ะ
แถบข้างล่างที่อยู่เหนือ task bar มันขึ้นข้อความว่า Error on page ด้วยค่ะ
รู้สึกว่าพอแก้เวลาเป็น set_time_limit(160); แล้วมันจะใช้เวลานานขึ้นกว่าเดิม ถึงจะแสดง Fatal error อ่ะค่ะ
ทำไงดีค่ะ
|
 |
 |
 |
 |
Date :
2009-08-27 16:27:32 |
By :
pochiiez |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
$x[$j] = $result["chap_id"]; ด้วยครับ
|
 |
 |
 |
 |
Date :
2009-08-27 16:34:32 |
By :
lozomac |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
set_time_limit(0); // ไม่จำกัดในการรันหน้านั้นคับ
ติดตามอ่านต่อได้ที่
http://www.thaiems.net
http://forum.thaiems.net
http://it-goo.blogspot.com
http://chita-funnyjoke.blogspot.com
|
 |
 |
 |
 |
Date :
2009-08-27 16:45:57 |
By :
konlata |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แก้แร้วค่ะแต่ไม่ได้เหมือนเดิมค่ะ
Fatal error: Maximum execution time of 160 seconds exceeded in D:\AppServ\www\project\addAddition_form_firsttime.php on line 61
if ($i == $x[k])
{ // line 61
$flag = false;
}
ทำไมมันฟ้อง line นี้ไม่รุอ่าค่ะ
|
 |
 |
 |
 |
Date :
2009-08-27 16:47:56 |
By :
pochiiez |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
if ($i == $x[$k]) ดูดีๆ ครับ
|
 |
 |
 |
 |
Date :
2009-08-27 17:12:09 |
By :
lozomac |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
พอมีคัยดูให้ได้อีกมั้ยคะ
หาไม่เจอจิงๆค่ะ
ว่าผิดตรงไหน ค่ะ
|
 |
 |
 |
 |
Date :
2009-08-28 15:05:43 |
By :
pochiiez |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 01
|