note 13378 added to function.system.php
| From: | ary at communicationfactory dot com | Date: | Wed, 13 Jun 2001 20:08:27 +0000 |
| Subject: | note 13378 added to function.system.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14423@lists.php.net to get a copy of this message | ||
Remember to use unix exit(o); on unix calls that use Unix redirection operator ">" .
This was a real problem for me, I was not getting a response back in the following code until I
added exit(0);
<?PHP
function myspawn()
{
$command="/usr/local/bin/mybinary infile.txt > outfile.tx2";
system($command);
## nothing worked for me until I added this next line.
system("exit(0)");
}
?>
<html>
<head>
<title>New Page 1</title>
</head>
<body>
Creating output file now
<? myspawn();?>
</body>
</html>
http://www.php.net/manual/en/function.system.php