I am allowing the user to upload a file, and then I am placing that file into the $file variable. What I want to do is copy the uploaded file ($file variable) into a folder I have that is called "form_uploads." I keep getting a "file or directory does not exist." I have used this before with another site to allow users to upload images, so I know it works, but I am having some difficulties. Below is my code, I know it's not much to go by, but any help would be great. Thanks, Adam
$file= $_REQUEST['form_upload'];
$path="form_uploads/".$file;
if(!copy($file , $path)){
echo "failed to copy $file...\n";
}