exec() not working in one script...

From: Date: Fri, 26 Jul 2002 15:32:12 +0000
Subject: exec() not working in one script...
Groups: php.general 
Request: Send a blank email to php-general+get-109757@lists.php.net to get a copy of this message
Frustrating! I have scripts that do this exact thing, on this exact server, for that matter in this exact set of directories, now it will not work; $filename = "NIIRTQWCDR." . date("Ymd") . "." . $cycle; //open new file and write records to it $cdrfile = fopen("/usr/local/www/data.default/rcr/" . $filename, "w+"); while($cdrrow = mysql_fetch_object($dbcdr)){ fputs($cdrfile, $cdrrow->whole_record); } fclose($cdrfile); //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* Jay My mind not only wanders, sometimes it leaves completely ************************************* * Want to meet other PHP developers * * in your area? Check out: * * http://php.meetup.com/ * * No developer is an island ... * *************************************

« previous php.general (#109757) next »