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

Is php an array?

1023


Tell me how can we automatically escape incoming data?

979


What is ci in php?

1119


what is the current salary package in India for a PHP programmer who has 1.5 years experience

3029


What is difference between mysql_connect and mysqli_connect?

1103


How does firefox manage cookies?

1039


Tell me what is the use of explode() function?

1026


Explain about the connective abilities of the PHP?

1073


What is the name of scripting engine in php?

1284


What is escape data in php?

987


Do you know how can php and html interact?

1058


What are the different tables(engine) present in mysql, which one is default?

1094


Does php support polymorphism?

993


discuss the issue of software theft in ghana and how it has affected the economy

2167


What is session_start () in php?

1052