PHP Classes

Fatal error: Maximum execution time of 30 seconds exceeded

Recommend this page to a friend!

      PHP PDF to Text  >  All threads  >  Fatal error: Maximum execution time...  >  (Un) Subscribe thread alerts  
Subject:Fatal error: Maximum execution time...
Summary:Fatal error
Messages:2
Author:Elvin Andrean
Date:2017-01-10 14:20:50
 

  1. Fatal error: Maximum execution time...   Reply   Report abuse  
Picture of Elvin Andrean Elvin Andrean - 2017-01-10 14:20:50
i have one pdf again sir, and the file size is 2.5 mb. I want to try pdf that have 100 page and i got this error. Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\regex\PdfToText.phpclass on line 142.
How to solve it?

  2. Re: Fatal error: Maximum execution time...   Reply   Report abuse  
Picture of Christian Vigh Christian Vigh - 2017-01-10 18:42:15 - In reply to message 1 from Elvin Andrean
Don't worry, this does not come from your pdf file nor does it come from the PdfToText class.

Actually, there is a setting called "max_execution_time" in your php.ini file whose default value is 30 (seconds).

Set it to a higher value, 120 for example. This will give your script 4 minutes to execute, which should be enough.

Note : you must restart Apache for your modification to take effect.

If 120 is not enough, try a higher value.

Hope this helps !
Christian.