r-it Posted July 15, 2008 Share Posted July 15, 2008 Hi there, I have an upload function that in most cases is used to replace existing files on a directory on my server. the problem is that it does not overwrite an existing file on the server, what can i do to ensure that this happens? Quote Link to comment https://forums.phpfreaks.com/topic/114802-replacing-contents-of-folder/ Share on other sites More sharing options...
samshel Posted July 15, 2008 Share Posted July 15, 2008 Does it show any error? the only reason i see why it would not over write is insufficient permissions. Quote Link to comment https://forums.phpfreaks.com/topic/114802-replacing-contents-of-folder/#findComment-590290 Share on other sites More sharing options...
DeanWhitehouse Posted July 15, 2008 Share Posted July 15, 2008 i would advise deleting the file first, Quote Link to comment https://forums.phpfreaks.com/topic/114802-replacing-contents-of-folder/#findComment-590293 Share on other sites More sharing options...
samshel Posted July 15, 2008 Share Posted July 15, 2008 if it does not allow to over write, it will also not allow to delete i think..first we need to know what error it shows.. Quote Link to comment https://forums.phpfreaks.com/topic/114802-replacing-contents-of-folder/#findComment-590294 Share on other sites More sharing options...
mmarif4u Posted July 15, 2008 Share Posted July 15, 2008 samshel is right. In linux permissions are crucial. So check your folder permissions OR show us the error. Quote Link to comment https://forums.phpfreaks.com/topic/114802-replacing-contents-of-folder/#findComment-590301 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.