What are the effects of setting a large (php_value memory_limit 16M) in your .htaccess file Sometimes i get the follwing error: Allowed memory size of 16777216 bytes exhausted (tried to allocate (some number) bytes) when i try to upload images to my site If i increase (php_value memory_limit 16M) memory size in my .htaccess file, what effects will it have on the rest of my site/server
Ok, so what can i do to stop this error, my hosting company does not give access to the php.ini file... So what should i do, what should i set the memory_limit to. My users can only upload JPEGs that are less than 2mb in size
I think even if you set it in htaccess it wont have effect on your configuration , cause if your provider seems to be restrictive. I would think the best way about this would be to request them to increase the allowed memory size ,you can try and set it to higher number , the effect will be that overall a script would be allowed to use that amount of max ram.