move memory_limit to the learn.php script