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\medziosa ndelis.lt\ httpdocs\i ncludes\si stems_func tion.inc.p hp 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
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\medziosa
"
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.