I have a file "foo.txt" and a folder "bar/", both in my current working directory. I am trying to copy the "foo.txt" into "bar/" using the COPYFILE function like this:
copyfile('foo.txt','/bar/');
However, when I do this, I get the following error:
Error using copyfile A required privilege is not held by the client.
Best Answer