(solved) Array too big to fetch from?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Vael Victus
Forum Newbie
Posts: 24
Joined: Wed Jun 03, 2009 9:29 am

(solved) Array too big to fetch from?

Post 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.
Last edited by Vael Victus on Wed Jun 03, 2009 10:49 am, edited 1 time in total.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Array too big to fetch from?

Post by pickle »

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?

Post by mattpointblank »

Try adding this before the query call:

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?

Post 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.
Post Reply