lordvader Posted March 26, 2008 Share Posted March 26, 2008 How hard is it to rename a file? rename(oldname, newname), right? Apparently, damn hard! I keep getting Warning: rename(test1.txt,test2.txt) [function.rename]: No such file or directory in d:\pract\test.php But they're there! This is just a win2k practice box running the latest xampp. What little, tiny thing am I missing here? Not file perms, this is admin with full privies, and it's on fat32 so no chmod. Gah! Anyone? TIA Link to comment https://forums.phpfreaks.com/topic/97908-how-to-rename-files-i-just-cant-get-it-to-work/ Share on other sites More sharing options...
TRI0N Posted March 26, 2008 Share Posted March 26, 2008 Some or all your code will help determin what is going wrong.. Link to comment https://forums.phpfreaks.com/topic/97908-how-to-rename-files-i-just-cant-get-it-to-work/#findComment-500923 Share on other sites More sharing options...
lordvader Posted March 26, 2008 Author Share Posted March 26, 2008 No, that's the only code. I put it on test.php at the root folder of my practice xampp install, and there's only one line: rename("test1.txt", "test2.txt"); And of course I put the test1.txt file in there too. So this is about as simple as can be, and yet... it won't work! Link to comment https://forums.phpfreaks.com/topic/97908-how-to-rename-files-i-just-cant-get-it-to-work/#findComment-500926 Share on other sites More sharing options...
lordvader Posted March 26, 2008 Author Share Posted March 26, 2008 Never mind, figured out why it wasn't working at the root level. Link to comment https://forums.phpfreaks.com/topic/97908-how-to-rename-files-i-just-cant-get-it-to-work/#findComment-500927 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.