Hey All
Great forum, I have honestly found most answers by searching old posts, except this one:
I have .pdf files which I keep chmod 600 for security reasons on my server. Although I want people who authenticate (.htaccess) to get access to these files, so what I want to happen is the following:
chmod (644, "file.pdf"
;
print "Location: file.pdf\n\n";
chmod (600, "file.pdf"
;
Although I noticed the reality is that the 2nd chmod happens too fast for the file to load. How can I load the file and print it to the screen once it has loaded then chmod it back to 600, but please realize this is not a normal .html file but a .pdf???
Any and every suggestion would be great!!!!
Great forum, I have honestly found most answers by searching old posts, except this one:
I have .pdf files which I keep chmod 600 for security reasons on my server. Although I want people who authenticate (.htaccess) to get access to these files, so what I want to happen is the following:
chmod (644, "file.pdf"
print "Location: file.pdf\n\n";
chmod (600, "file.pdf"
Although I noticed the reality is that the 2nd chmod happens too fast for the file to load. How can I load the file and print it to the screen once it has loaded then chmod it back to 600, but please realize this is not a normal .html file but a .pdf???
Any and every suggestion would be great!!!!