Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


how to uploade video in php????



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

Post New Answer

More PHP Interview Questions

How to convert strings to numbers in php?

0 Answers  


What are escaping characters?

0 Answers  


Do while loops?

0 Answers  


Tell me what is the use of isset() in php?

0 Answers  


What are the encryption functions available in PHP?

0 Answers  






What is list in PHP?

0 Answers  


How to download the files using PHP

1 Answers  


What are the two most common ways to start and finish a php block of code?

0 Answers  


What is php in simple words?

0 Answers  


Can a trait extend a class php?

0 Answers  


What is the mysql injection?

0 Answers  


Is php class name case sensitive?

0 Answers  






Categories