I\'m need to check if memory_limit is at least 64M in my script installer. This is just part of PHP code that should work, but probably due to this
memory_limit
64M
Not so exact but simpler solution:
$limit = str_replace(array('G', 'M', 'K'), array('000000000', '000000', '000'), ini_get('memory_limit')); if($limit < 500000000) ini_set('memory_limit', '500M');