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('fi le_get_con tents', $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.
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
...
}
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.
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...
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
https://www.experts-exchange.com/questions/21169828/Fatal-error-Allowed-memory-size-of-8388608-bytes-exhausted.html
https://www.experts-exchange.com/questions/22756675/cannot-upload-images-allowed-memory-size-exhausted.html