I’m trying to do an image upload form with multiple boxes, AND a javascript function to add more boxes (already complete…pretty much).

this is the error I get:

Code:

Warning: move_uploaded_file(/Photos/) [function.move-uploaded-file]: failed to  open stream

The <input type="file"… are named images[].

the code is this:

PHP Code:


for($x 0$x count($_FILES[‘images’][‘name’]); $x++)
        {
            if((
$_FILES[“images”][“type”][$x] == “image/jpeg”) || ($_FILES[“images”][“type”][$x] == “image/pjpeg”))
            {
                if(
$_FILES[‘images’][’size’][$x] > 0)
                {
                    
move_uploaded_file($_FILES[‘images’][“tmp_name”][$x], ‘/Photos/’);
                }
            }
        } 




For the location i’ve tried "/Photos", "Photos/", with no success.

I have the permissions set to 777, and have been searching google for a couple hours now. Thanks for helping!