Link to home
Start Free TrialLog in
Avatar of domka
domka

asked on

how fix "Fatal error: Allowed memory size of 16777216 bytes exhausted.. "?

Hello
When i uplode image (>650kb) to server by upload form, for me show error "
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 7776 bytes) in C:\Inetpub\vhosts\medziosandelis.lt\httpdocs\includes\sistems_function.inc.php on line 579
"
I found what memory size can change by .htaccess in apache., but my server is IIS and i cant change my self php.ini settings. So, how i can this fix error? maybe will be some offers, please help me
Thank you i waiting answers
Avatar of hernst42
hernst42
Flag of Germany image

You can try to change the setting via registry.
http://www.php.net/manual/en/configuration.changes.php#configuration.changes.windows

If you can't edit the registry you must ask the serveradmin to do this for you. Editing the php.ini and registry are the only two possible ways to change that value.
Avatar of domka
domka

ASKER

I cant do anything, hosting owners dont want change settings, so i need  fix in code..
images use a lot of memory if the get uncompressed and have a large size in width and height. So I guess the code can't be fixed either. So if the hosting owner want to change this and you need more memory for your script plan to go to another hoster. That might be the only one solution, or don't allow such large images.

ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America 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