Page 1 of 1

(solved) Array too big to fetch from?

Posted: Wed Jun 03, 2009 9:35 am
by Vael Victus
Hi, I've got a big amount of text being stored in the database, and I can confirm it's actually in there, but I can't get it out. It shows about 30,000 characters worth, and then the script just dies. I'm assuming the server I'm on (it's shared) is killing the script for some reason... but does anyone know the solution? I've also tried fetching its assoc to no avail.

Re: Array too big to fetch from?

Posted: Wed Jun 03, 2009 9:48 am
by pickle
Is the script taking a long time to finish? You may be hitting the 30 second (default) time limit.

Re: Array too big to fetch from?

Posted: Wed Jun 03, 2009 9:48 am
by mattpointblank
Try adding this before the query call:

ini_set('memory_limit', '16M');

Re: Array too big to fetch from?

Posted: Wed Jun 03, 2009 10:46 am
by Vael Victus
mattpointblank wrote:Try adding this before the query call:

ini_set('memory_limit', '16M');
Didn't work. :(

Pickle - it just loads instantly, that's what I don't get. It's like it has a problem with the exact query, and just won't show it.

Edit: Figured it out, it was a server issue. Support set it up for me. Thanks folks.