I need help with a php script for downloading files | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I need help with a php script for downloading files

I'm designing a php script to obtain file details from a MySQL database, fetch the file from a folder, increase the downloads count on the DB and pop-up a download dialog box. I've been able to achieve the first 3, but I'm having issues with the downloading aspect.

13th Mar 2017, 10:34 AM
Isaac Adavize
Isaac Adavize - avatar
1 Answer
+ 1
use the header function to tell the browser that you have a file that need to be downloaded
24th Mar 2017, 8:22 PM
Sepehr Azizi
Sepehr Azizi - avatar