Link to home
Start Free TrialLog in
Avatar of bibabutze
bibabutze

asked on

Memory allocation error

Hi Experts,

I´m using a DOM Class that reads a html file.

public function file_get_html() {
          $dom = new lib_dom_dom();
          $args = func_get_args();
          @$dom->load(call_user_func_array('file_get_contents', $args), true);
...
}

When i call my script (test.php) via the browser everything works fine. it reads the html file.

When i try to call the php file via the console it gives me the following error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1848 bytes) in... ...dom/dom.class.php

I don´t understand why i can call the script directly via the webbrowser with no memory error, but i cannot call it via the console.
Avatar of Loganathan Natarajan
Loganathan Natarajan
Flag of India image

Avatar of bibabutze
bibabutze

ASKER

The php limit is already on 128MB

If this would be the problem it would not work out when i call the php fle via the webbrowser... it has to be a problem with the calling of the script via the console...
ASKER CERTIFIED SOLUTION
Avatar of nplib
nplib
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial