Jump to content

Archived

This topic is now archived and is closed to further replies.

tomtrueluk

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

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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]<?php
if(file_exists('myfile.ext')){
  unlink('myfile.ext');
}
//Continue Upload....
?>[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.