Code: Select all
$uploaddir = "uploads";
if(is_uploaded_file($_FILESї'file']ї'tmp_name']))
{
move_uploaded_file($_FILESї'file']ї'tmp_name'],$uploaddir.'/'.$_FILESї'file']ї'name']);
}i.e.
if(is_uploaded_file($_FILES['file']['tmp_name']))
in this function:
'file' => name of file to upload and
'tmp_name' => ? for wot?
move_uploaded_file($_FILES['file']['tmp_name'],$uploaddir.'/'.$_FILES['file']['name']);
in this function i m not able to understand wot does it mean:'/'.$_FILES['file']['name'])
and my 2ns question is that:
is there any possiblity of creating folder using php?
if there is then how?