SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    UK
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Download files from non-web accessible directory

    What would be the best (possible) way to create a download mechanism so that when a user clicks a link to download a file, the backend PHP script prompts the download window and the file downloads from a directory not in the web (http) root directory?

    In this particular situation, I have a varying number of files (from 50MB to 1GB) on a seperate drive to the http server (Apache) root directory. I have come accross the PHP header function but am not sure if a) it is the correct way to go or b) that I am barking up the right tree!!

    Any advice appreciated!
    Design is an art... Then someone releases a new browser...

    Farstate Applications

  2. #2
    SitePoint Zealot mwasif's Avatar
    Join Date
    Apr 2007
    Location
    Pakistan
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


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
  •