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.
bibabutzeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bibabutzeAuthor Commented:
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...
0
nplibCommented:
php for windows will have more then one php.ini file,

one for the web server and one for the command line. I would check to make sure that both have a 128 mb limit and not just the web server one.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.