Php allow download file to logged in users






















Share this: Tweet. Like this: Like Loading Leave a Reply Cancel reply Enter your comment here Fill in your details below or click an icon to log in:. Email required Address never made public. Name required. Follow Following. Sign me up. Already have a WordPress. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.

The Overflow Blog. Podcast what if you could invest in your favorite developer? Who owns this outage? Building intelligent escalation chains for modern SRE. Featured on Meta. PHP has functions for everything.

Spyros Spyros Place the MP3 files above your docroot, or if that is impossible, deny access to them with. Verify a user is logged in. Send the appropriate headers and readfile on the MP3 when the user requests the file. Then there is no need to use. Two reasons: PHP has an internal memory limit. Adarsh Madrecha Adarsh Madrecha 3, 9 9 gold badges 53 53 silver badges 85 85 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.

Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast what if you could invest in your favorite developer?

Answered by minitauros in a post from 9 Years Ago. Of course this is just a simple suggestion, I have yet to mention security etc. Answered by baig 19 in a post from 9 Years Ago. The problem is I am new to this and this is not my coding. It is another developers work. Is there no piece of code to add to indicate a link in the current code i posted earlier? Hi Thanks!



0コメント

  • 1000 / 1000