Re: exec() not working in one script...

From: Date: Fri, 26 Jul 2002 15:46:09 +0000
Subject: Re: exec() not working in one script...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109764@lists.php.net to get a copy of this message
//move file into outgoing directory exec("mv /usr/local/www/data.default/rcr/$filename /usr/local/www/data.default/rcr/outgoing/$filename"); The file gets created just fine, gets populated just fine, it just will not move. *grrrr*
Try copy("/usr/local/www/data.default/rcr/".$filename, "/usr/local/www/data.default/rcr/outgoing".$filename); unlink("/usr/local/www/data.default/rcr/".$filename) OR $pp = popen('/bin/sh', 'w'); $command = "mv /usr/local/www/data.default/rcr/$filename /usr/local/www/data.default/rcr/outgoing/$filename"; fputs($pp, $command); pclose($fp); Regards, Johan

« previous php.general (#109764) next »