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 do you use an array in excel?
What is the use of the function 'imagetypes()'?
Do you know how to get the ip address of the client?
What is the difference between explode() and split() functions?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what is the problem?
Why is php used for web development?
What is regular expression in javascript?
Which functions are used to remove whitespaces from the string?
Which is correct about mysqli and pdo?
What is a variable cost example?
What is the current stable version of php? What advance thing in php7?
How do you remove whitespace from the beginning and end of a $string variable?