Would something like this work:
$uploaddir = "/home/website/public_html/groups/images/$groupid/";
$uploadfile = $uploaddir . "no_pic.gif");
//echo '<pre>';
if (move_uploaded_file("no_pic.gif", $uploadfile)) {
//echo "File is valid, and was successfully uploaded.\n";
} else {
echo "Possible file upload attack!\n";
}
That was just a guess since no one is uploading the picture I removed the $_FILES variables and am just trying to grab the directory where the file currently sits and copy/upload it to the new directory $uploaddir in this case?
The current file sits in the groups/images folder but I want to copy the no_pic.gif to the groups/images/$groupid folder.
I think that would get the file to the right destination but I'm not specifying where to get the file at? Any ideas how to incorporate this all together?