Re: Command-line PHP memory limit
| From: | Robert Cummings | Date: | Thu, 12 Jun 2008 02:45:45 +0000 |
| Subject: | Re: Command-line PHP memory limit | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275245@lists.php.net to get a copy of this message | ||
On Wed, 2008-06-11 at 23:48 +0200, Rene Fournier wrote:
> Is it possible to set a unique memory limit for PHP scripts that are
> run from the command line? (That is, different from what's specified
> in php.ini.)
In your script:
ini_set( 'memory_limit', -1 );
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP