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

What is the use of friend function in php?

0 Answers  


how can i develop forum code? any one pleale help me on this question

0 Answers  


What is the main difference between require() and include()?

0 Answers  


Is laravel better than codeigniter?

0 Answers  


Explain what does $_server means?

0 Answers  






Write a PHP code to print following number pattern: 123 456 789

5 Answers  


What are the different filter functions used to filter a variable?

0 Answers  


I have two radio button, i click one radio button display one dropdown box, one text field. and then click another radio button display one text field.so any one give me good idea plz.....i used <div id="" style=display:none> but not work..

4 Answers  


How do you remove duplicates from an array?

0 Answers  


please explain me mail function in php

2 Answers  


What are the advantages of PHP over HTML?

11 Answers   Infosys, Torque Infotech,


What is the salary for php developer(Fresher)?

1 Answers  


Categories