note 48190 added to function.system
| From: | cabel at panic dot com | Date: | Wed, 15 Dec 2004 00:20:05 +0000 |
| Subject: | note 48190 added to function.system | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81802@lists.php.net to get a copy of this message | ||
We were using system() to call a Cocoa command-line binary from PHP using Mac OS X. The Cocoa binary
was simply not working -- no error message, no logging, nothing, it would just die within moments of
launching from the system() function and we'd get no results.
The answer now seems obvious -- we were hitting PHP's memory limit. We did not consider that
PHP's memory limit would also extend to programs launched via system().
So, if your system() call is failing mysteriously and giving no results, after trying the obvious
(permissions, executable, etc.) considering upping:
memory_limit
in your php.ini from 8M to something larger.
----
Manual Page -- http://www.php.net/manual/en/function.system.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48190
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48190&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48190&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48190&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48190&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48190&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48190&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48190&report=yes
Search -- http://master.php.net/manage/user-notes.php