hi,
when i set ini_set('memory_limit', '5M') it does not take any effect in my server but it works fine in my localhost.
| SitePoint Sponsor |


hi,
when i set ini_set('memory_limit', '5M') it does not take any effect in my server but it works fine in my localhost.





i use php 4 version, it is said that my server supports php5 and as well as php4

Did you restart the server? (not the hardware I mean stop/start apache)


yes, i did it in my localhost, how do i restart my server only hosting provider have to do it. but is it necessary to restart server if i do so in coding?

I am sorry, my previous reply was misleading, you only need to stop start if you change a value in the php.ini file.
Whether ini_set() will work on shared hosting may well depend on if the hosting company allows ini_set to be overridden in scripts. I would doubt it, I think you may need to contact their support to check for yourself.
Bookmarks