upload file using php programming

Superglobals variable Files in php :-

$_FILES have some property's like  temp_name , name ,file_size ,file_type etc.

to make a uploading file system just do that work :-

first of all create a folder in your server (i use xampp server) to storing uploaded files.



$file_name = $_FILES['image']['name'];

$file_tmp = $_FILES['image']['tmp_name'];



                 echo "file uploaded  successfully";




<form enctype="multipart/form-data" method="post">

<input type="file" name="image">