file upload and file permissions
Posted: Thu Feb 05, 2004 11:38 am
Please please help, I have tried this code, its real basic because Ive never done it before, but if it works it will be going on my site.
The problem is it keeps coming up with permission denied errors and I was wonderin where I can change folder and file permissions, that is if there isn' any other problems
Code: Select all
if($File){
print("file name: $File_name<P>\n");
print("file size: $File_size<P>\n");
if(copy($File_name, "users/$File_name")){
print("file uploaded\n");
}else{
print("File not copied\n");
}
unlink($File);
}
print("upload a file:");
print("<form action=fileupload.php method=post enctype=multipart/formdata>\n");
print("file<input type=file name="File" size=20><BR>\n");
print("<input type=submit name=submit value=Submit!></form>\n");