PC Nerd Posted July 26, 2007 Share Posted July 26, 2007 Hi, Im looking for a way, to rename files on my server. eg /me/files/FILE1.mp3 i want me script to be able to shange that to /me/files/MUSIC.mp3 also, is it possible for the php script to change the location of the file? eg the above file moved to /me/music/uploads/MUSIC.mp3 is that possible? and if so how? thanks in advance Quote Link to comment Share on other sites More sharing options...
akitchin Posted July 26, 2007 Share Posted July 26, 2007 you'll probably need to use rename() or copy(), followed by unlink()ing the previous file in the latter case. Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted July 26, 2007 Author Share Posted July 26, 2007 thanks ill look into these functions Quote Link to comment 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.