I have taken this from the manual, to process the exact form from the manual (look for "handling file uploads" in the manual to see the rest of it.
<?php
// In PHP earlier then 4.1.0, $HTTP_POST_FILES should be used instead of $_FILES.
if (is_uploaded_file($_FILES['userfile']['tmp_name'])) {
copy($_FILES['userfile']['tmp_name'], "C:\\\\website\\\\public_html\\\\uploads\\\");
} else {
echo "Possible file upload attack. Filename: " . $_FILES['userfile']['name'];
}
?>
However, I'm running XP Home, and Apache, and I can't work out how to set file permissions. I did a search on the board that said to turn off simple file sharing in folder options, but it's not there (think that's only in Pro). Someone seemed to be saying that they'd got file uploads to work with XP Home, but how? I've double slashed my place\to\put\uploaded\file, but still no joy.
Any ideas?
Many thanks,
ucbones