File Uploading Methods
Posted: Mon May 29, 2006 2:15 am
following is one method for uploading files, which is connection less method, there is no assurance that file will get uploaded or not? is there any method which is connection oriented method in php?
Thanks
Code: Select all
$uploadfile = $uploaddir . basename($_FILES['file']['name']);
if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile))
{
echo "File Uploaded .....";
}
else
{
echo "Uploading Failded.";
}Thanks