<?php if (move_uploaded_file($_FILES['userfile']['tmp_name'], "/documents/new/")) { print "Uploaded successfully!"; } else { print "Upload failed!"; } ?>