Results 1 to 5 of 5

Thread: PHP Fatal error: Allowed memory size of 134217728

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2007
    Posts
    912

    PHP Fatal error: Allowed memory size of 134217728

    what is the solution to this error?

    Code:
    PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes)
    i was using following two lines when i got this error
    Code:
    ini_set('memory_limit', '-1');
    ini_set('max_execution_time', -1);
    how can i kick this error away?

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: PHP Fatal error: Allowed memory size of 134217728

    Try setting max_execution_time to something other than -1
    My usual boring signature: Something

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2007
    Posts
    912

    Re: PHP Fatal error: Allowed memory size of 134217728

    Quote Originally Posted by dclamp View Post
    Try setting max_execution_time to something other than -1
    I already had it to -1 but it was crashed

  4. #4
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: PHP Fatal error: Allowed memory size of 134217728

    Try something other than -1. Try a very large number.

    You should also figure out why the script is taking so long to run.
    My usual boring signature: Something

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2007
    Posts
    912

    Re: PHP Fatal error: Allowed memory size of 134217728

    U
    Quote Originally Posted by dclamp View Post
    Try something other than -1. Try a very large number.

    You should also figure out why the script is taking so long to run.

    Script actually asks for any website url amd look for all <a> tags into its source code.

    And dk the same same for all available anchor tags. But do not repeat same for duplicate urls...

    For small websites it worka fine but for too big websites it gets the error

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width