I'm running Lampp in Ubuntu, Working in
The htdocs folder has write permissions enabled (I don't remember the exact command I ran to do that). I'm able to copy files from That folder to my home folder using cp/mv without any errors.
But I'm unable to do that using PHP.
File.txt is placed in the htdocs folder and I want to move it to
/home/username. I have tried using "copy" but it says "Failed to open stream" error and the Shell_exec / exec command won't show any error but doesn't copy the file either.