Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how we can upload and view video files

Answer Posted / laxmikant

if($_POST['submit'])
{
if($_FILES['video']['error']>0)
{
echo "error in ur file";
}
else
{
$target_path = "uploads/";

echo $target_path = $target_path . $_FILES['video']['name'];

if(move_uploaded_file($_FILES['video']['tmp_name'],
$target_path)) {
echo "The file ". basename( $_FILES['video']['name']).
" has been uploaded";
} else{
echo "There was an error uploading the file, please try
again!";
}

}

}
<form name="f" action="" method="post"
enctype="multipart/form-data">
<input type="file" name="video" />
<input type="submit" name="submit" value="submit" />
</form>

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find a specific value in an array?

913


sort term descripttion form, report and uery

2175


What are the features of php 7?

1036


What is escaping to php?

956


What type of errors can be occurred in php?

963


Why and where do we use htaccess?

1020


What is the integer?

1040


What is the difference between query and inquiry?

898


What is difference between get and post in php?

1161


What are the uses of explode() and implode() functions?

1066


Is php harder than javascript?

993


Is php closing tag necessary?

992


What does $_env means?

919


What does a special set of tags do in php?

916


What distinguishes php from something like client side java script?

1018