Protecting Files Problem
Posted: Fri Nov 21, 2003 4:44 pm
Hello,
I have made a subdir in my webroot called "spacks" because i cannot make a dir outside the root. I protected the dir with CHMOD 700 so the webusers can not access itt.I have an error if i use fpassthru.
Warning: stat failed for /home/httpd/vhosts/xxxxxxxxx/httpdocs/spacks/test.zip (errno=13 - Permission denied) in /home/httpd/vhosts/xxxxxxxxxx/httpdocs/test.php on line 5 File Not Found
Why i'm doing this is because i want when user payd they can download the file but the file has to be put in a safe dir where users cannot get it. So i want to forward via a script but i don't wanna make a copy of the file because its 50mb and thats bad for my bandwith. I already tryed alot of things but nothing works
Can someone helps me here?
Cheers
Kris
I have made a subdir in my webroot called "spacks" because i cannot make a dir outside the root. I protected the dir with CHMOD 700 so the webusers can not access itt.I have an error if i use fpassthru.
Warning: stat failed for /home/httpd/vhosts/xxxxxxxxx/httpdocs/spacks/test.zip (errno=13 - Permission denied) in /home/httpd/vhosts/xxxxxxxxxx/httpdocs/test.php on line 5 File Not Found
Why i'm doing this is because i want when user payd they can download the file but the file has to be put in a safe dir where users cannot get it. So i want to forward via a script but i don't wanna make a copy of the file because its 50mb and thats bad for my bandwith. I already tryed alot of things but nothing works
Can someone helps me here?
Cheers
Kris