gsquare567 Posted May 1, 2007 Share Posted May 1, 2007 i havent found any downloading functions, so im wondering if it is possible to let a user download an uploaded file from my website through a php script. Link to comment https://forums.phpfreaks.com/topic/49393-opening-a-download-in-a-script-on-a-website-with-an-uploaded-file/ Share on other sites More sharing options...
warewolfe Posted May 1, 2007 Share Posted May 1, 2007 Unless I've misunderstood your question the easiest way is to have a php page that generates a link to each file in your upload directory. Use the directory functions eg scandir() to generate an list of the files you want (filter for the type of files you want to let the user download. Downloading is more an (x)html and browser thing than a php thing. Link to comment https://forums.phpfreaks.com/topic/49393-opening-a-download-in-a-script-on-a-website-with-an-uploaded-file/#findComment-242062 Share on other sites More sharing options...
gsquare567 Posted May 1, 2007 Author Share Posted May 1, 2007 oh, ic. thanks a lot. so if i do this in html, is there a simple way to just create a popup prompting a download? Link to comment https://forums.phpfreaks.com/topic/49393-opening-a-download-in-a-script-on-a-website-with-an-uploaded-file/#findComment-242075 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.