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 are the types of variables in php?
How many ways we can give the output to a browser?
How to find the position of the first occurrence of a substring in a string?
how to track no of users logged in?
How does php strcmp work?
Can you convert php to html?
What are the advantages and disadvantages of Cascading Style Sheets?
What is php array function?
What does pear stand for?
Tell me how can we determine whether a php variable is an instantiated object of a certain class?
What are the Merits and De-Merits of CURL library ?
Is it difficult to learn php?