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 are the basic steps to store PHP session in to Database?

1 Answers   Rediff,


Tips to optimize the php script..... Suggestion for exception handling in php...

1 Answers  


What is a procedure in php?

5 Answers   Wipro,


what is the post and get method??

14 Answers   Google,


does PHP support foreign key and Rollback?yes or not.if not then why. how will you done these concept in php?

1 Answers   Avanigoradia, Primus Global,






what is code for email sending through localhost pc..?

2 Answers  


How many ways we can give the output to a browser?

6 Answers  


What is the diffrence between GET,POST and REQUEST Method.

7 Answers   Acquity Software,


Can we use include (?abc.PHP?) two times in a PHP page ?makeit.PHP??

5 Answers  


How can we encrpt a text?

3 Answers  


how set session expire time in php?

4 Answers  


what is constructor in a class, how it is work, how it is call?

2 Answers  






Categories