NYCPHP Meetup

NYPHP.org

[nycphp-talk] allowed memory size error

Kerem Tuzemen keremtuzemen at gmail.com
Fri Feb 25 15:07:28 EST 2005


Philippe,

This usually happens when you are not careful with what you pull from the
database. Especially if you are putting the results into a hash or an array
with a foreach or similar  loop. I would suggest to take a closer look on
that part of the code.

Kerem Tuzemen


----- Original Message ----- 
From: <pcolleu at free.fr>
To: "NYPHP Talk" <talk at lists.nyphp.org>
Sent: Friday, February 25, 2005 1:28 PM
Subject: [nycphp-talk] allowed memory size error


> Could somebody help me on that one ?
>
> I'm trying to retrieve a 300 char long text from a database and place it
into a
> textarea...
> Here is the message I get from my browser :
>
> -----------
> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate
> 61 bytes) in
> /home/r/e/user988508/html/primaire/pagesFr/personnel/infosFlashModify.php
on
> line 59
>
> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate
> 138 bytes) in Unknown on line 0
> -----------
>
> If I display the same text (coming from the same database) as text on the
page,
> then there is no problem  !
> What should I do to fix the problem ?
>
> Thanks in advance
>
>
> Philippe COLLEU
> Instituteur chargé de l'informatique au Lycée Français de New York, NY,
USA
> <http://pcolleu.free.fr/NYC/index.html> : Quelques images de New York
> <http://pcolleu.free.fr/Ecuador/index.html> : Quelques images d'Equateur
> <http://pcolleu.free.fr/Ouganda/index.html> : Quelques images d'Ouganda
> <http://pcolleu.free.fr/maths/index.html> : Maths au CM
> <http://pcolleu.free.fr/grammaire/index.html> : Grammaire au CM
> _______________________________________________
> New York PHP Talk Mailing List
> AMP Technology
> Supporting Apache, MySQL and PHP
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.nyphp.org




More information about the talk mailing list