Canman2005 Posted February 25, 2009 Share Posted February 25, 2009 Hi all I have a very simple QUERY which gets a list of products, the list is very long though, about 500 products. I'm trying to convert it to a PDF file and have tried tons of free PDF converters, my porblem is that when I try and convert this products list I keep getting Fatal error: Allowed memory size What can I do to try and fix this and also what is a safe MB limit to use? Link to comment https://forums.phpfreaks.com/topic/146888-i-keep-getting-fatal-error-allowed-memory-sizehi-all/ Share on other sites More sharing options...
sastro Posted February 25, 2009 Share Posted February 25, 2009 If you have enough memory, put this on the top of the script : ini_set('memory_limit','1000M'); or save it to html with print format and convert to pdf using http://www.phpclasses.org/browse/package/3168.html Link to comment https://forums.phpfreaks.com/topic/146888-i-keep-getting-fatal-error-allowed-memory-sizehi-all/#findComment-771219 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.