I have a PHP script that receives uploads and it works fine in mamp, creating directories and receiving files as necessary, but when I move it to the server it errors out sa
chown or chmod 777 the directories where the script wants to write (create) the files and NOT the script itself.