tomtrueluk Posted September 6, 2006 Share Posted September 6, 2006 I have a script that executes a cvs update on an IIS server, yet instead of overwriting the files, it is creating new files.Example: the file "cache" becomes ".new.cache"Was wondering if anybody has any ideas here?? Is this a cvs problem? or is this a permissions problem with IIS/php??thanksTom. Link to comment https://forums.phpfreaks.com/topic/19915-helpupdate-adds-new-to-filename/ Share on other sites More sharing options...
Woolf Posted September 6, 2006 Share Posted September 6, 2006 You might try to tell your PHP script to see if the file exists already, if it does - delete the file, then upload the new one.[code]<?phpif(file_exists('myfile.ext')){ unlink('myfile.ext');}//Continue Upload....?>[/code] Link to comment https://forums.phpfreaks.com/topic/19915-helpupdate-adds-new-to-filename/#findComment-87454 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.