how to uploade video in php????
Answer / rashmi bajpai
On php coding file like uploaded.php<?php
$target_path="../upload/";//this is the name of that folder
in which we r uploading our video.//
$arg=$_FILES['uploadedfile']['tmp_name'];
if(move_uploaded_file($tmp,$target_path))
{
echo "The file". $_FILES['uploadedfile']['name']."has been
uploaded";
}
else
{
echo"there was an error in uploading";
}
?>
On other html file like uploaded.php:
<html>
<form enctype="multipart/form-data" action="uploaded.php"
method="post">//file should always be uploaded by post method.
<input type="hidden" name="MAX_FILE_SIZE" value="100000"/>
Choose a file to upload:
<input name="uploaded file" type="file"/> <br>
<input type="submit" value="upload file"/>
</form>
</html>
| Is This Answer Correct ? | 24 Yes | 3 No |
Do you know what is the use of rand() in php?
What is compact function php?
Can php use gettext?
Explain the importance of the function htmlentities.
Which function(s) in PHP computes the difference of arrays?
How to remove duplicate values from array using php?
What is a simple php method to make a cross domain data request?
Which programming language does php resemble to?
What is a query in a database?
How would you determine the size of a file in php?
How to find datatype of variable in php?
What is artisan in php?