Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


How would you impletement download and upload a file in php

Answers were Sorted based on User's Feedback



How would you impletement download and upload a file in php..

Answer / vijaya

refer this link for uploading


http://php-mysql-javascript-css.blogspot.com/

for files downloading you can use headers .

<?php
// We'll be outputting a PDF
header('Content-type: application/pdf');

// It will be called downloaded.pdf
header('Content-Disposition: attachment;
filename="downloaded.pdf"');

// The PDF source is in original.pdf
readfile('original.pdf');
?>

Is This Answer Correct ?    7 Yes 0 No

How would you impletement download and upload a file in php..

Answer / master

uploading is down using html file tag and later on moved to
the destination location.

for downloading we can use the pdf format so once we click
on the link the pdg format of the file will be downloaded

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More PHP Interview Questions

What is php pathinfo?

0 Answers  


How to insert a line break in php string?

0 Answers  


what use of <?php

1 Answers   CBS,


Suppose your zend engine supports the mode <? ?> Then how can you configure your php zend engine to support <?php ?> Mode ?

0 Answers  


What is csrf verification?

0 Answers  






we store and display scores of users in different games. In MySQL, records are stored as tuples (user-id, game-id, score). Now we need to support ranks of users, i.e., each user should be informed of his current rank in the community. The challenge is to come up with the best way to store the data in MySQL so that the requirements are efficiently met.

1 Answers   IndiaTimes,


What is the difference between super () and this ()?

0 Answers  


What is array filter in php?

0 Answers  


Tell me how to get the value of current session id?

0 Answers  


How can I rotate an image?

1 Answers   Rushmore Consultancy,


How can we display information of a variable and readable by a human with php?

0 Answers  


Is multiple inheritance supported in php?

0 Answers  






Categories