PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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
I can put .htaccess in my subdirs it gives now for the users:
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster
My question is how can i fix it via script the users can get the file but not making a copy of the original file because the files are 50-60mb.