I hate to sound ignorant, but how do I get a file out of a .htaccess protected directory without logging in again? You cant use the normal syntax of http://username:[EMAIL PROTECTED] anymore. Microsoft "fixed" that "bug".
Thanks, Aaron "Torsten Roehr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Aaron Todd" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > So far I have made this work. But now I have to ask...what about a pdf > > file? I cant add php code to it so what do I do. I need to be able to > > restrict the pdf so a user can only get to it during a current session. > > > > Thanks again for all the previous posts. You all directed me to a good > > place. My pdf files sliped my mind when I posted. I should have added > this > > problem before. > > > > I hope it can still be done. > > > > Thanks, > > > > Aaron > > Hi Aaron, > > put your pdf file outside of the webroot our in a .htaccess protected > directory. Then read in the file contents, set the appropriate headers and > output the file contents to the browser - this should prompt a download > window. > > PEAR's HTTP_Download is excellent for this job: > http://pear.php.net/package/HTTP_Download > > Regards, Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php