shaddf Posted November 14, 2015 Share Posted November 14, 2015 Is there a way of moving a file from one directory to another with out using the file input in php. say if the file has already been uploded to directory a before and now is being archived to directory b. Quote Link to comment https://forums.phpfreaks.com/topic/299479-moving-a-file-to-another-directory/ Share on other sites More sharing options...
Solution requinix Posted November 14, 2015 Solution Share Posted November 14, 2015 "The file input"? rename (which does moves too) Figure out the path to the file in directory A, figure out the path you want it for in directory B, and pass both to rename(). 2 Quote Link to comment https://forums.phpfreaks.com/topic/299479-moving-a-file-to-another-directory/#findComment-1526382 Share on other sites More sharing options...
hansford Posted November 14, 2015 Share Posted November 14, 2015 Requinix, memory lane. Look here at this related post you made back in 2008. http://forums.devnetwork.net/viewtopic.php?f=1&t=113664 Quote Link to comment https://forums.phpfreaks.com/topic/299479-moving-a-file-to-another-directory/#findComment-1526385 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.