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 the use of friend function in php?
how can i develop forum code? any one pleale help me on this question
What is the main difference between require() and include()?
Is laravel better than codeigniter?
Explain what does $_server means?
Write a PHP code to print following number pattern: 123 456 789
What are the different filter functions used to filter a variable?
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..
How do you remove duplicates from an array?
please explain me mail function in php
What are the advantages of PHP over HTML?
11 Answers Infosys, Torque Infotech,
What is the salary for php developer(Fresher)?