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 ... * ************************************* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php