neoform Posted October 26, 2007 Share Posted October 26, 2007 I tried: get_cfg_var('memory_limit'), but this only works sometimes.. Is there a clear way to get the current memory limit of PHP? (I hate how badly GD handles memory limit problems) Quote Link to comment https://forums.phpfreaks.com/topic/74907-get-phps-memory-limit/ Share on other sites More sharing options...
toplay Posted October 26, 2007 Share Posted October 26, 2007 http://us3.php.net/manual/en/function.memory-get-usage.php http://us3.php.net/manual/en/ini.core.php#ini.memory-limit http://us3.php.net/manual/en/function.ini-get.php FYI : // Example of setting a limit ini_set('memory_limit', '50M'); Quote Link to comment https://forums.phpfreaks.com/topic/74907-get-phps-memory-limit/#findComment-378736 Share on other sites More sharing options...
neoform Posted October 26, 2007 Author Share Posted October 26, 2007 nice, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/74907-get-phps-memory-limit/#findComment-378759 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.