r/WebdevTutorials • u/thecodehelpers • Oct 12 '19
How to forcefully download file in php
Download file in php is very simple process, but some time corrupted file or some other format file really cause problem in download for that today i will share a post how to forcefully download file, we need to force the browser to download the file, mainly we are using header() and readfile() php function to forcefully download the file, here i have given example of how to download file forcefully, you easily can download file from directory also,you may download any kind of file like image,Document,PSD,ZIP etc, here we go
0
Upvotes