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

Answers were Sorted based on User's Feedback



how we can upload and view video files..

Answer / 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

how we can upload and view video files..

Answer / vipin gurjar

in php we use upload file by using copy function and copy
that clip in a folder

copy(source,destination)

and then u can specify a path like

<body>

<p>
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-
444553540000" id="obj1"
codebase="http://download.macromedia.com/pub/shockwave/cabs/
flash/swflash.cab#version=6,0,40,0" border="0" width="160"
height="160">
<param name="movie" value="file:///C:/Documents and
Settings/user/My Documents/My
Pictures/vimages/masterdata.jpg">
<param name="quality" value="High">
<embed src="filePthname%
20Pictures/vimages/masterdata.jpg"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" name="obj1"
width="160" height="160"></object>
</p>

</body>

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More PHP Interview Questions

Do you know design patterns. List few?

0 Answers  


What is overloading and overriding in oop?

0 Answers  


What is difference between session and cookies in php?

0 Answers  


How we can retrieve the data in the result set of mysql using php?

0 Answers  


How to get ip address of a server in php?

0 Answers  


Whether php supports microsoft sql server?

0 Answers  


Explain what are psrs? Choose 1 and briefly describe it?

0 Answers  


What is mysqli_real_escape_string?

0 Answers  


Sir, I want sbi clearical post model question paper please sent my mail id srinivas_33000@ahoo.co.in

0 Answers   State Bank Of India SBI,


How do you achieve page caching in PHP?

3 Answers  


How should a model be structured in mvc?

0 Answers  


How to return a value back to the function caller?

0 Answers  


Categories