SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot forum11's Avatar
    Join Date
    Feb 2006
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Restrict one download at a time (PHP)

    I using PHP script (using headers) to download file (after logging in users can download files).

    Is there a way to restrict users to download one file at a time?
    Means if user already downloading a file and he clicks on second file the download does not start and user get a message that one download is already in progress.

    Thanks
    Do Good Have Good!

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This is a restriction you're going to need to impose at a higher level, not after the request is processed and passed off to the PHP interpreter.

    http://dominia.org/djao/limitipconn.html


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •