Click to See Complete Forum and Search --> : Provide file for download?


curious_george
08-22-2007, 08:04 PM
Hello again everyone!

I have a directory full of files which I want to allow my company's employees to download. I have placed them in a directory above the root httpdocs directory, but now I can't figure out how to provide them for downloads. If the files are below the httpdocs root directory then you just give a direct link to them. How do you provide downloads for files above the httpdocs root directory though?

Thanks in advance.

CG

rcracingfan24
08-23-2007, 12:44 AM
<?php readfile('../../../path/to/file.zip'); ?>