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 |
Is php class name case sensitive?
please can any one tell is there any openings for freshers in PHP ...please tell the company name and address sir where can i find ..php related companies and how much i expect salary as a fresher in php ..i finished my LAMP course i done my mca ..i seen in many job portals there is no job for freshers in php can any one tel me please in chennai i need php jobs ..? thank u friends
What are the methods of array in java?
How to enable cURL in PHP?
How can we make a constant in php?
What function should you use to join array elements with a glue string?
What is meant by an associative array?
What are Sub routines?
Is age interval or ordinal data?
Is php strongly typed?
Is time a dependent variable?
What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?