dennismonsewicz Posted October 22, 2008 Share Posted October 22, 2008 can someone give me an example on how this is done? I have a site that houses projects for my company and they are wanting to add an archive functionality and I am wanting to be able to move the individual uploads for the projects into an archive directory Quote Link to comment https://forums.phpfreaks.com/topic/129653-solved-copying-one-file-from-one-folder-into-another/ Share on other sites More sharing options...
Maq Posted October 22, 2008 Share Posted October 22, 2008 copy Quote Link to comment https://forums.phpfreaks.com/topic/129653-solved-copying-one-file-from-one-folder-into-another/#findComment-672191 Share on other sites More sharing options...
aeonsky Posted October 22, 2008 Share Posted October 22, 2008 To copy, use 'copy()'. To move, use 'rename()'. Quote Link to comment https://forums.phpfreaks.com/topic/129653-solved-copying-one-file-from-one-folder-into-another/#findComment-672193 Share on other sites More sharing options...
Orio Posted October 22, 2008 Share Posted October 22, 2008 The manual is correct... Use the rename() function as instructed. Although you still have to build the script that will decide whether a file needs to be archived. Orio. Quote Link to comment https://forums.phpfreaks.com/topic/129653-solved-copying-one-file-from-one-folder-into-another/#findComment-672195 Share on other sites More sharing options...
dennismonsewicz Posted October 22, 2008 Author Share Posted October 22, 2008 thanks everyone! I am working on the archiving script now... i was just a little unsure on moving the files! Thanks for all of your help! Quote Link to comment https://forums.phpfreaks.com/topic/129653-solved-copying-one-file-from-one-folder-into-another/#findComment-672199 Share on other sites More sharing options...
Maq Posted October 23, 2008 Share Posted October 23, 2008 Nice, let us know how it goes. Quote Link to comment https://forums.phpfreaks.com/topic/129653-solved-copying-one-file-from-one-folder-into-another/#findComment-672447 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.