Write the code for upload a video file in PHP.How will You
Play this in Your Page.?
Answer Posted / sai suman
In u'r form tag keep an attribute called enc-type with
multipart/form-data
eg:
<form name="upload" id="upload" action="upload.php"
method="post" enctype="multipart/form-data">
So this makes the browser to think that the form is posting
a file as data and this file is sent as chunks, the file
details will be stored in a variable called $_FILES.
In u'r php file just use move_uplode_file("$temp name,<new
file path>")..
Also check the max file size in php.ini while uploading
Is This Answer Correct ? | 13 Yes | 10 No |
Post New Answer View All Answers
How to concatenate two strings in php?
What is a query in a database?
How come the code works, but doesn’t for two-dimensional array of mine?
How do you measure variables?
How does the identity operator ===compare two values in PHP?
Difference between mysql_connect and mysql_pconnect?
How can we submit a form without using submit buttons?
What is php pathinfo?
What is $globals php?
How to create database connection and query in php?
How arrays are used in php?
How can image properties be retrieved in php?
How to get complete current page url in php?
What are php variables?
Write a program to display a table of any given number?