PHP Allowed memory size of X bytes exhausted -
i'm using mpdf library create , download pdf files, example x1000 (singly using ajax) in loop.
error message series of files "allowed memory size of 268435456 bytes exhausted (tried allocate 261900 bytes)"
. read have set bigger memory_limit in configuration can't this, because 256m limit.
is there other solution error?
you can reduce memory usage 2 other ways without increasing memory limit...
- consider setting $mpdf->simpletables = true; if not need complex table borders, or $mpdf->packtabledata = true; if not mind processing time.
- packtabledata – use binary packing of table data reduce memory usage
both of increase processing time in order save memory usage.
Comments
Post a Comment