mushroom Posted May 19, 2008 Share Posted May 19, 2008 I am a fairly experienced with php/mysql and have some mission critical scripts I wish to expand but I don't want to risk breaking them by running out of allocated memory . Is there a command in php that will return the amount memory used by a script or one that returns the amount that is still available ??? Quote Link to comment Share on other sites More sharing options...
mushroom Posted May 19, 2008 Author Share Posted May 19, 2008 I could not find the answer in any of the books that I had but http://ca3.php.net/manual-lookup.php?pattern=memory gave me the answers memory_get_usage() memory_get_peak_usage() Quote Link to comment 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.