NYCPHP Meetup

NYPHP.org

[nycphp-talk] Memory Limit

Sterling Hughes sterling at bumblebury.com
Fri Jan 3 12:38:40 EST 2003


> Hi,
> 
> There are two simple ways to have more free memory for your scripts :
> 
> 1- You can increase memory limit from 8 Mb to any amount in php.ini file.
> 2- You can use 'unset()' function to unset unused variables right after you use them.
>

err, that should only be php 3 specific, php4's reference counting mechanism releases all
variables the second they are no longer referenced in the script.

-Sterling

> I've been working on a log parser to parse almost 1Gb web server logfile everyday. Using 'unset()'
> helped me a lot.
> 
> 
> 
> --- "Nunez, Eddy" <enunez at tiaa-cref.org> wrote:
> > 
> > This is in reference to the standard memory limit for server PHP scripts,
> > which is 8MB.
> > 
> > My question is...
> > is there any function to query available free space in the memory pool?
> > 
> > I have searched through www.php.net and found nothing useful.
> > 
> > Thanks,
> > -EN
> > 
> > 
> > **********************************************************************
> > This message, including any attachments, contains confidential information intended for a
> > specific individual and purpose, and is protected by law.  If you are not the intended
> > recipient, please contact sender immediately by reply e-mail and destroy all copies.  You are
> > hereby notified that any disclosure, copying, or distribution of this message, or the taking of
> > any action based on it, is strictly prohibited.
> > TIAA-CREF
> > **********************************************************************
> > 
> > 
> > 
> > 
> > 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 
> 



More information about the talk mailing list