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 stored procedure in mysql?
How can we register the variables into a Session?
7 Answers HCL, Star Computers, Trikon Networks,
How can we encrypt the username and password using PHP?
13 Answers Avaria, HCL, TCS, Xpert,
How to create a directory?
explain the changes in php version
Tell me what are magic methods?
What is the most common http method?
What is mvc? Why its been used?
How to access standard error stream in PHP?
What are computer variables?
Is it possible to extend the execution time of a php script?
What is the PHP predefined variable that tells the What types of images that PHP supports?