Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.