I get an error in this --set_time_limit () - Locked

0

I want to print a document that is generated from the web to PDF, but it does not mean that I can do someone can help me. I leave everything that I get when I want to print, this comes out on a new screen. function blocked in php that I do help me.

Warning: set_time_limit() has been disabled for security reasons in /home/u461708868/public_html/pdf/html2pdf.class.php on line 12
TCPDF ERROR: Some data has already been output, can't send PDF file
    
asked by Carlos 16.10.2017 в 20:09
source

2 answers

0

I understand that you are using the services of a hosting provider and it has disabled the execution of set_time_limit to prevent php scripts from consuming server memory.

As the php.ini configuration file is not available, the solution I see is that you ask your provider to run set_time_limit within 90 seconds or change providers.

    
answered by 18.10.2017 / 06:44
source
0

I eliminated the time_limit line (500) and would optimize the query to reduce it to the maximum limit allowed by the provider.

500 seconds is too long for a script. I do not know the pdf you need to generate but they should be seconds.

    
answered by 18.10.2017 в 07:54