Re: Error 155 using exec - please help !

From: Date: Tue, 17 Dec 2002 11:18:17 +0000
Subject: Re: Error 155 using exec - please help !
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128534@lists.php.net to get a copy of this message
Take a look at http://cvs.php.net/co.php/php4/php.ini-dist The part that should you look at is Resource Limits (max_execution_time,memory_limit) and set up your php.ini accordingly. ml@sd2i.fr wrote:
Here is what i do to parse a file with a perl script from PHP to get a formatted output from the file : error_reporting(E_ALL); $cmd="/pathto/dump.pl \"".$HTTP_POST_VARS["filename"]."\" 2>&1"; $res=exec($cmd,$tab,$err); With small files all goes fine, but when parsing a big file i get the 155 error code in $err, while PHP doesn't report any error ($tab stays empty) Of course if I launch the same command directly from the shell, all goes fine even with very very big files. Where can i find more info about that error code ? Is it returned by perl, sh, Apache or PHP ? Probably because of some memory limit, where can i tune that memory limit ? I'am on FreeBSD4+Apache 1.3+PHP4 apache module+perl 5 Thanks for any help. David.


« previous php.general (#128534) next »