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 me what is sql injection?
What happens if an expected input field was not submitted?
What is csrf verification?
Why php was called as personal home page?
Explain about objects in PHP?
Which is the correct way to check if a session has already been started ?
What is the use of $_server and $_env?
What are the steps for the payment gateway processing?
How we can get the number of elements in an array?
How do you count numbers in php?
What is pdo classes?
What is variable function php?
Differentiate between require and include?
how to track user logged out or not? when a user is idle?
Explain Type juggling?