Hey have any of you successfully uploaded files from a web interface?
I am trying, without success, to get files to upload to a folder on my site. I can't even get my script to echo the temp folder. Here is what I have:
$source = $HTTP_POST_FILES['file1']['tmp_name'];
$uploaddir = "upload";
print "Your file has been uploaded successfully! Yay!";
My folder, "upload" has the permissions set to 777. I really am stumped. I had previously gotten files to upload as blobs to MySQL, but then couldn't get the images to display in my pages. And, I read that it is preferrable to upload to a folder and just store the path.
I am relatively new to php and I am stuck! Can anyone shed any light on this?