How would you impletement download and upload a file in php
Answers were Sorted based on User's Feedback
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 |
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 |
Why do we use in php?
What are the popular frameworks in php?
How can you declare the array in php?
what is the current salary package in India for a PHP & MySQL programmer who has 3 years experience
127 Answers ABC, BLG Logistics, Google, HCL, IBM, Infosys, People Group, PHP, Torque Infotech, V Angelz Technologies, Yahoo,
Can php run without server?
How do you use bcrypt for hashing passwords in php?
Shopping cart online validation i.e. how can we configure Paypal, etc.?
What are properties in php?
What is a model in php?
What is the exact Diff. between include_once() and require_once() in PHP?
Describe session in php.
What is the purpose of pear in php?