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 sequence?
How to execute a function in php?
Write a statement to show the joining of multiple comparisons in php?
What are the options to transfer session ids?
Why framework is used in php?
How to upload any files extension in our database Ex.(.doc,.txt,mp4,mp3 etc.)in php
Describe the security vulnerability of PHP?
What is register_globals in php?
6 Answers Castling IT, HCL, Intel Soft Solutions, Millennium,
how can i disable multiple user in the same password in my website using any scripts
What are the new features available in php 7?
Is php a framework?
How to download file in php?