I am trying to copy a txt file to another txt file with php like this:
<?php
echo copy("pos.txt","positions.txt");
?>
but I get an error :
failed to open stream: Permission denied in E:\Users\user\copy.php on line 2
I believe that if I pass the correct context parameter, as I did with fwrite
it will work as well but I have limited knowledge on php.