I recently increased the directive memory_limit in PHP.INI to permit a 267M file download, in test server.
When asking to the infrastructure support people to make the same in production server the suggestion was to increase memory limit just when it's necessary, in PHP code, and then restore to the anterior limit.
What is the better way in doing that ? Better, by using Codeigniter?
And then how to obtain by code the current memory_limit before to increase it and to restore it after?
Thanks in advance