Hi i'm trying to upload a picture to the server using a form and it all seems to be working fine the only problem is I can't seem to find the picture when its uploaded, the script runs fine and gives me no errors and then when I come to look in the folder where i think it should be, there is nothing there. I'm using a test environment on the mac and am using the inbuilt apache server on OSX but don't have any idea which is the root folder as far as the move_uploaded_file function is concerned:
$destination = "upload/";
move_uploaded_file($_FILES["pix"]["tmp_name"], $destination.$_FILES["pix"]["name"]);
echo "br />Moved to: " .$destination.$_FILES["pix"]["name"];
This is the offending code, now I would assume that the file would be in a folder called upload on the mac HD, anyone know where i'm going wrong!?
Cheers.