I have a PHP script that I pass in the name of a file, it pushes the file to another computer, copies the file to an archive directory and unlinks the file. It works fine.
I have 2 programs that call the script both call it the same way, either I can call it with a <form> (to post 1 file at a time) or rapid fire with cURL (to post all). Program A works fine either way but program B if I call it with the <form> it works fine, if I call it with cURL it won’t unlink and it gives me a Permission denied error. How do I fix this?
I have 2 programs that call the script both call it the same way, either I can call it with a <form> (to post 1 file at a time) or rapid fire with cURL (to post all). Program A works fine either way but program B if I call it with the <form> it works fine, if I call it with cURL it won’t unlink and it gives me a Permission denied error. How do I fix this?
Comment