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
Is time a dependent variable?
What are the characteristics of php?
How to open a file for reading?
What is the difference between client-side and server-side programming?
Which php framework is best for web development?
What is the importance of parser in php?
How are php sessions stored?
What does $_files means?
What is php simple definition?
How do I escape in php?
What is the different between count() and sizeof() in php?
What is $_ get and $_ post in php?
How many types of functions are there in php?
What is a helper function?
What is the purpose of pear in php?