how we can upload and view video files
Answers were Sorted based on User's Feedback
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 |
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 |
What is a simple php method to make a cross domain data request?
Where are php configuration settings stored?
What is the use of limit in mysql?
Tell me which programming language does php resemble to?
Please explain is it possible to use com component in php?
What is the content of /etc directory?
How to find datatype of variable in php?
What is a trait in php?
Explain the difference between $var and $$var?
How would you declare a function that receives one parameter name hello?
What is the role of php?
What is the purpose of the '.myd' file extension? What do thes file contain?