Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the function func_num_args() used for?

1003


How can we encrypt the password using php?

1184


Tell me what are magic methods?

1022


What is the function used to change the root directory in PHP?

1067


Is php better than python?

1026


What is the difference between single quoted string and double quoted string?

1178


How is a constant defined in a PHP script?

1089


What is T_PAAMAYIM_NEKUDOTAYIM?

1260


What is the correct line to use within the php.ini file, to specify that 128mb would be the maximum amount of memory that a script may use?

1036


How to block direct directory access in PHP?

1023


What is mod_php?

1078


Tell me what is the importance of "action" attribute in a html form?

1178


Do you know how to get the ip address of the client?

1253


What is a query give example?

1051


Which php function will attach one file to another?

1027