Jump to content


Photo

Help...update adds .new. to filename??


  • Please log in to reply
1 reply to this topic

#1 tomtrueluk

tomtrueluk
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 06 September 2006 - 03:21 PM

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??

thanks
Tom.

#2 Woolf

Woolf
  • Members
  • PipPipPip
  • Advanced Member
  • 41 posts

Posted 06 September 2006 - 10:58 PM

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.

<?php
if(file_exists('myfile.ext')){
  unlink('myfile.ext');
}
//Continue Upload....
?>





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users