Jump to content

Script execution fails


ashly

Recommended Posts

Hi,

I am working with php5 and i have a script that should have to be executed as a cron. The main purpose of the script is to send reports as pdf files to different users. The problem is when i generate a number of pdfs, the script fails to complete the process and results in display a page with network error. It is creating around 6 types of pdf files in each execution, each having an average size of 500 KB. The memory_get_usage() returns the value -51507298 after a function call in ezpdf library. just before the function call the value for the same was 1967298. Default php.ini setting for memory_limit is 50 MB. I have set the memory limit in the script to 500 MB.

 

ini_set("memory_limit", "500M");

 

I am using the library ezpdf to generate pdf files. Can anyone help me to sort out the problem...?

 

Thanks in advance

Ashly

Link to comment
https://forums.phpfreaks.com/topic/40168-script-execution-fails/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.