The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

memory_get_usage() function PHP 5.2.0

Discussion in 'General Discussion' started by paulm, Jan 15, 2007.

  1. paulm

    paulm Well-Known Member

    Joined:
    Oct 13, 2003
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    6
    I have a few scripts that require a certain amount of memory to be allocated to PHP and for some reason in PHP 5.x it just returns a blank value for some reason. This creates and issue for some scripts which require XX amount of memory be available to install.

    Has anyone else had the same issue and possibly found a fix or alternative?
     
  2. adept2003

    adept2003 Well-Known Member

    Joined:
    Aug 11, 2003
    Messages:
    283
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    ~ "/(extra|special)/data"
    You need to compile php with memory limit enabled. In easy apache, its the option "Enable Memory Limit (experimental) "
     
Loading...

Share This Page