khhalid Posted April 30, 2010 Share Posted April 30, 2010 Hi guys, I want to move Excel file from one folder into another one. I am using following codes: <?php $file = "/uploaded/DMZ/newTest.txt"; $newlocation= "/uploaded/scanned/newTest.txt"; rename($file, $newlocation); ?> Nothing happening when I execute the code. Many thanks K Link to comment https://forums.phpfreaks.com/topic/200257-move-file-to-new-location/ Share on other sites More sharing options...
Adam Posted April 30, 2010 Share Posted April 30, 2010 Ensure the script has the right permissions (and that both locations exist).. Link to comment https://forums.phpfreaks.com/topic/200257-move-file-to-new-location/#findComment-1050913 Share on other sites More sharing options...
khhalid Posted April 30, 2010 Author Share Posted April 30, 2010 thanks Adam, what do you mean by script permissions? i have checked the folder permissions (where my script reading file and writing file) and the locations are exist. Link to comment https://forums.phpfreaks.com/topic/200257-move-file-to-new-location/#findComment-1050918 Share on other sites More sharing options...
khhalid Posted April 30, 2010 Author Share Posted April 30, 2010 you were right, it was my application need permission to access into the location. Thanks for help, Link to comment https://forums.phpfreaks.com/topic/200257-move-file-to-new-location/#findComment-1050928 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.