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



Write the code for upload a video file in PHP.How will You Play this in Your Page.?..

Answer / imteyazhaider

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

Write the code for upload a video file in PHP.How will You Play this in Your Page.?..

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

Post New Answer

More PHP Interview Questions

What is a stored procedure in mysql?

0 Answers  


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?

0 Answers  


explain the changes in php version

3 Answers  


Tell me what are magic methods?

0 Answers  


What is the most common http method?

0 Answers  


What is mvc? Why its been used?

0 Answers  


How to access standard error stream in PHP?

0 Answers  


What are computer variables?

0 Answers  


Is it possible to extend the execution time of a php script?

0 Answers  


What is the PHP predefined variable that tells the What types of images that PHP supports?

1 Answers  


Categories