< source_code>
$uploaddir = '/home/lance/www/uploads/'; $http_post_uploaded_file = $_FILES['uploadedfile']['name']; $uploadfile = ${uploaddir}.${http_post_uploaded_file}; move_uploaded_file($_FILES['uploadedfile']['tmp_name'], ${uploadfile}); $upload_url="/uploads/".${http_post_uploaded_file}; if ($_FILES['uploadedfile']['name']!="") { echo "<href=\"".${upload_url}."\">here is what you uploaded</a>\n"; }</source_code>
No comments:
Post a Comment