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 |
How do I find environment variables?
If there are 10 text boxes in a form having same name, their value are different. Value of which textbox will be received on action script?
20 Answers A1 Technology, Bajaj, DG, Genpact,
What kind of things have you done on the social side?
How can we get second of the current time using date function?
explain php variable length argument function.
What is overloading and overriding in php?
What is $_session in php?
Define urlencode() and urldecode() used in php?
How to invoke a user function?
What are headers in php?
What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?
Is a number php?