Write the code for upload a video file in PHP.How will You
Play this in Your Page.?
Answers were Sorted based on User's Feedback
by using object and embed method
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-
444553540000"......
and
<embed src="test.wmv .......
| Is This Answer Correct ? | 12 Yes | 7 No |
Answer / 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 |
What is a query give example?
What exactly is PHP?
which will print out the php call stack?
List out the predefined classes in PHP?
What is cookies? How to create cookies in php?
why we used type-pool SLIS in ALVs? how many types of windows in scripts?
What is sorting php?
How do I start a php session?
How can we destroy the cookie in php?
Is php required for wordpress?
How are sessions maintained?
what use of <?php