(solved) Array too big to fetch from?
Moderator: General Moderators
-
Vael Victus
- Forum Newbie
- Posts: 24
- Joined: Wed Jun 03, 2009 9:29 am
(solved) Array too big to fetch from?
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.
Last edited by Vael Victus on Wed Jun 03, 2009 10:49 am, edited 1 time in total.
Re: Array too big to fetch from?
Is the script taking a long time to finish? You may be hitting the 30 second (default) time limit.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
mattpointblank
- Forum Contributor
- Posts: 304
- Joined: Tue Dec 23, 2008 6:29 am
Re: Array too big to fetch from?
Try adding this before the query call:
ini_set('memory_limit', '16M');
ini_set('memory_limit', '16M');
-
Vael Victus
- Forum Newbie
- Posts: 24
- Joined: Wed Jun 03, 2009 9:29 am
Re: Array too big to fetch from?
Didn't work.mattpointblank wrote:Try adding this before the query call:
ini_set('memory_limit', '16M');
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.