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 false empty php?
What is php in full?
How many ways are there for passing variables between pages in PHP and what are they ?
What is difference between python and php?
Does php use html?
Single choice objective PHP question...
How to send a cookie to the browser?
Write a program to get second highest number in an array using php?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
What is __ construct in php?
What is the main difference between require() and require_once()?
What is json php?