Im learning PHP and came up with this script from a tutorial..
Code:
<?php
if(isset($_FILES['file']) == false OR $_FILES['file']['error'] == UPLOAD_ERR_NO_FILE) {
die('Error');
}
if($_FILES['file']['error'] != UPLOAD_ERR_OK) {
die('Error Uploading');
}
$path = '/home/vekaria/public_html/imagehosting/';
$file = $path . $_FILES['file']['name'];
move_uploaded_file($_FILES['file']['name'], $newfile);
die('Done');
?>
It is a file uploader,
How can i make it so when i upload an image it will display the image after it has been uploaded.