How would you impletement download and upload a file in php
Answer Posted / 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 |
Post New Answer View All Answers
Explain object-oriented methodology in php?
Why delimiter is used in mysql?
Which is correct about mysqli and pdo?
What are the three parts of an http request?
What is csrf token in php?
What is use of echo in php?
Which function(s) in PHP computes the difference of arrays?
What is isset post?
What does echo mean in php?
What is put method in php?
What is interface? Why it is used?
What is the goto statement useful for?
What is php in full?
Write logic to print Floyd's triangle in PHP?
Does session expire on closing browser?