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 Quote Link to comment 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).. Quote Link to comment 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. Quote Link to comment 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, 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.