I have the following code:
rename ('/original_dir/file','/new_dir/file');
When the code is run, I get the following message:
Warning: rename(/original_dir/file,/new_dir/file): Operation not permitted
The file is however copied to /newdir, but is not removed from /original_dir
I am using rename to have it moved, not copied.
Both /original_dir and /new_dir have permissions set to 0777
This should work. Any ideas?