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 |
How can we check the value of a given variable is a number?
What is the different between cookies and session in php?
What can I do by cakePHP?
What are the different loops in php?
Is php is dying?
What does csrf token mean?
What is php explain how php works?
What is the main difference between asp net and php?
What is advanced php programming?
Use of Session
can anyone tel me about the Expression engine Note:Its a CMS in Php
What is php and sql?