Re: Execute programs

From: Date: Sun, 23 Nov 2003 03:15:46 +0000
Subject: Re: Execute programs
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-170697@lists.php.net to get a copy of this message
----- Original Message ----- > > If you start a program using this function and want to leave it running in > > the background, you have to make sure that the output of that program is > > redirected to a file or some other output stream or else PHP will hang until > > the execution of the program ends. Use system() and background it with &: $cmd = "tail -f /var/log/messages &"; system($cmd); -eric

« previous php.general (#170697) next »