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 |
What is php written in?
What are the advantages of stored procedures, triggers, indexes in php?
What exactly is validating and sanitizing?
What types of Data Can Be Used as Array Keys?
What is printf in php?
How can we get the error when there is a problem to upload a file?
what is the abbrevation of PHP?
Tell me what is use of in_array() function in php?
What is php explain how php works?
Which function you can use in php to open a file for reading or writing or for both?
Is php secure?
How can you execute php script from the command line?