How to download file in PHP? Q & A › Category: PHP › How to download file in PHP? 0 Vote Up Vote Down Admin Staff asked 4 years ago How to download file in PHP? Share this:TwitterFacebookWhatsAppPinterestLike this:Like Loading... 1 Answers 0 Vote Up Vote Down Admin Staff answered 4 years ago The readfile() function is used to download the file in PHP. int readfile ( string $filename ) Share this:TwitterFacebookWhatsAppPinterestLike this:Like Loading...