ok this is my upload.html
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Title here!</title>
</head>
<body>
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000">
Select a file to upload! <input type="file" name="userfile"><br>
<input type="submit" value="Upload!">
</form>
</body>
</html>
this is my upload.php
<?php
if(!(copy($FILES['userfile']['tmp_name'], "Upload/" . $FILES['userfile']['name']))) die("Cannot upload files.");
echo "Upload Complete!";
?>
now this works but erm the chmod is so i can view the file but cant delete it (even from master control panel) so i have to delete the folder to delete the files, if i can just figure out the php fuction to copy/upload the files with like chmod 777 that would be great! 🙂