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 |
Explain about the data types in PHP?
Tell me how can you pass a variable by reference?
what are the differences between php and perl
what is "mysql_pconnect", i know mysql_connect but what it is pconnect is their?
How to convert one date format into another in php?
What does PEAR stands for?
Tell me what should we do to be able to export data into an excel file?
1.Where are the cookies storing ? 2.What is the drawback of using cookies ? 3. If two site is having same cookie name and different values what will be the output if we echo the cookie name from those sites ? How can we solve this issue (How can we specify the domain name)?
Does php support polymorphism?
What is the use of $_server["php_self"] variable?
Which function would you use to merge two arrays in php?
How to call javascript function in php on button click?