note 13378 deleted from function.system by jimw

From: Date: Sat, 08 Dec 2001 23:56:04 +0000
Subject: note 13378 deleted from function.system by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22393@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>

« previous php.notes (#22393) next »