无法移动上传的文件

I know this has been asked a lot, but I looked at all the solutions to the other questions, and none of them worked.

I'm basically just using this:

move_uploaded_file($_FILES["photo"]["tmp_name"],"uploads/" . $_FILES["photo"]["name"]);

with an image coming in from a POST request. The POST request is working fine though.

What I've tried: CHMOD -R 755 and CHMOD -R 777 (which have been the answers to SO many other questions I've seen so far), but they don't change the error:

Warning: move_uploaded_file(uploads/myImage.png) [function.move-uploaded-file]: failed to open stream: Permission denied in /Users/Sites/r/add.php on line 16

The german PHP.net states:

If safe mode is activated, PHP checks if the files/directories have the same UID (owner) as the script itself.

Source: http://php.net/manual/de/function.move-uploaded-file.php

Also, have you set chmod 777 on the temp folder as well as on the target folder?