Yeah, i think i mentioned the same thing(or was going to :/ ) you should be able to use the local filesystem, and reffer to it relatively! and then you can stream it and you wont need any authentication, and noone will be able to directly link to the file
-- Luke "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wednesday 21 January 2004 05:49, Scott Taylor wrote: > > Please trim your posts! > > > Of course there is not problem if the user is entering the information > > him or her self. But just using this code: > > > > $file = 'http://miningstocks.com/protected/Dec03PostPress.pdf'; > > > > //now view the PDF file > > header("Content-Type: application/pdf"); > > header("Accept-Ranges: bytes"); > > header("Content-Length: ".filesize($file)); > > readfile($file); > > > > from a PHP page where no authentication has occured does not work at all. > > Did you not read my reply to your previous thread about this? Use a local > filesystem path to read the file. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > ------------------------------------------ > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > ------------------------------------------ > /* > "A dirty mind is a joy forever." > -- Randy Kunkee > */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php