[Solusi] Error max_execution_time

This item was filled under [ Solusi Error ]

Pesan Error:

Error max_execution_time

Sebab:

script php melebihi batas eksekusi waktu yang ada, default adalah 30 detik

Solusi 1:

  • ubah script se-efisien mungkin

Jika tidak memungkinkan, maka ubah default maksimum eksekusi pada php.ini, menjadi:

max_execution_time 60

Setelah itu restart Apache.

Solusi 2:

Atau, bisa juga langsung pada script file php yang bersangkutan, dengan menyisipkan kode berikut diatas script Anda:

set_time_limit(60); // 60 detik

atau

set_time_limit(0); // tanpa batas, tidak direkomendasikan
Rate this topic:
1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 5.00 out of 5)
Loading ... Loading ...
Popularity: 4,206 views
Tagged with: [ , , , , , ]
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Artikel Sejenis

2 Comments on “[Solusi] Error max_execution_time”

  • Mozilla Firefox Mozilla Firefox 3.5.5
    Windows Windows XP
    19 Nov 2009 21:53

    tak coba dulu bro..
    udah coba seting pake .htaccesss tapi tetep gak bisa..

    Like or Dislike: Thumb up 0 Thumb down 0
  • Mozilla Firefox Mozilla Firefox 3.6.8
    Windows Windows XP
    21 Jun 2011 21:28

    @ganool, jika server hostingan Anda menggunakan suPHP, maka caranya adalah buat file dengan nama php.ini pada root website Anda, misalkan /home/ganool/public_html/php.ini, lalu isi dengan data berikut contoh:

    max_execution_time 90
    Like or Dislike: Thumb up 0 Thumb down 0

Leave a Comment

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Halaman ini di eksekusi dalam waktu 1.342 detik! (koneksi mayan bagus nih...)