View Single Post
Old September 27th, 2006, 10:30 AM   #2 (permalink)
Kickersny.com
Surpass Fan
Super #1
 
Joined in Aug 2004
Hosted on SH58
1,688 posts
Gave thanks: 6
Thanked 7 times
HTTP can not access files outside of /public_html/ so you will need to use PHP (or some other scripting language) to serve the file to the user.
PHP Code:
<?php
    $filename 
"file.mov";
    
$dir "/home/username/path/to/files/"// include trailing slash
    
$filesize filesize($dir.$filename);
    
header("Pragma: public"); // required
    
header("Expires: 0");
    
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    
header("Cache-Control: private",false); // required for certain browsers
    
header("Content-Disposition: inline; filename=\"".$filename."\";");
    
header("Content-Transfer-Encoding: binary");
    
header("Content-Length: ".$filesize);
    
readfile($filepath);
?>
There's a very basic one; extend as you need.
__________________
- Evan Charlton | [site] | Server - SH58
Kickersny.com is offline   Reply With Quote