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

Why using the htaccess file

2 Answers  


Hello Friends,I am seeking for a job in php having 2yrs. exp.Please suggest any company openings.

1 Answers  


how will i set pagination ?

2 Answers  


what are the various PHP Script Optimization techniques?

1 Answers   IBM, TCL, Krify Software Technologies,


What is the substitution of submit in PHP?

6 Answers   RedAlkemi,






How can we submit a form without a submit button?

5 Answers   CTS,


display selected value in dropdown list through javascript without page refresh

1 Answers  


what is constructor

0 Answers  


what is php?

3 Answers  


How will you sened requests from server1 to server2 from server2 to server3 and so on .. w/o letting the output come to the browser or say the client end in php

3 Answers   TCS, Yahoo, Swayam,


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

2 Answers  


write a prog using insert,update,delete in this manner as output? name: phno. add button 1.name phno. edit button delete button 2.

0 Answers  






Categories