php error

Discussion in 'PHP' started by mahiraj, Dec 1, 2007.

  1. #1
    Hi ALL...

    I facing this error Can anyone tell me about it???//////

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 6291456 bytes) in C:\Program Files\wamp\www\dialedge\dialedge\admin.php on line 4617
     
    mahiraj, Dec 1, 2007 IP
  2. Kwaku

    Kwaku Well-Known Member

    Messages:
    1,217
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Reserve more memory in your php.ini file or ask your hoster to do so.
     
    Kwaku, Dec 1, 2007 IP
  3. Jackel.ca

    Jackel.ca Well-Known Member

    Messages:
    108
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Your script appears to be exceeding the memory limit.

    Try increasing the memory size by adding something like this to your script:

    
    ini_set("memory_limit","XM"); //replace X with a numeric value
    
    Code (markup):
    Or try to optimize your script.

    EDIT: Or do what Kwaku suggested.
     
    Jackel.ca, Dec 1, 2007 IP
  4. mahiraj

    mahiraj Guest

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hi Kwaku

    how can i reserve more memory in php.ini
     
    mahiraj, Dec 1, 2007 IP
  5. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #5
    change memory_limit option in it to whatever you want:

    memory_limit = 8M

    sometimes when I run large download script, I have to raise it to 1GB.

    Peace,
     
    Barti1987, Dec 1, 2007 IP
  6. tonybogs

    tonybogs Peon

    Messages:
    462
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I would focus more on optimizing the script if this is one of your pages.
    THat is an awful lots of memory use for each thread to use.
    If its a one off though, all the posts here provided the right answer :)
     
    tonybogs, Dec 1, 2007 IP