Re: authentication problems!

From: Date: Tue, 20 Jan 2004 22:20:25 +0000
Subject: Re: authentication problems!
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-175212@lists.php.net to get a copy of this message
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 */

« previous php.general (#175212) next »