Memory Allocation Error

6 posts by 2 authors in: Forums > CMS Builder
Last Post: April 23, 2012   (RSS)

Re: [nmsinc] Memory Allocation Error

By Dave - April 21, 2012

Hi nmsinc,

How are you calculating the total? If it's in PHP then what's happening is all the records are being loaded into memory. If so then the better way to do it would be in MySQL so all the work is done on the mysql server.

If you can attach your viewer with the code in it I'll take a look and try to help. Thanks!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Memory Allocation Error

By nmsinc - April 21, 2012

Attached !

Thanks - nmsinc
nmsinc

Re: [nmsinc] Memory Allocation Error

By Dave - April 21, 2012

Oops, looks like it didn't come through. Can you attach again?
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Memory Allocation Error

By nmsinc - April 23, 2012

Sorry about that - let's try again!
nmsinc
Attachments:

inventory.php 15K

Re: [nmsinc] Memory Allocation Error

By Dave - April 23, 2012

Hi nmsinc,

Yep, definitely need to move the processing of that report into MySQL. Can you send me an url to the page so I can see the output? Then I'll try to offer some suggestions.

Just email me direct at dave@interactivetools.com with a link to this post and the page. Thanks!
Dave Edis - Senior Developer
interactivetools.com