RE: [PHP] Authenticate files downloads

From: Date: Wed, 07 Aug 2002 03:30:36 +0000
Subject: RE: [PHP] Authenticate files downloads
Groups: php.general 
Request: Send a blank email to php-general+get-111468@lists.php.net to get a copy of this message
yes, the browser is considered stdout -----Original Message----- From: Daniel Guerrier [mailto:dan_guerrier@yahoo.com] Sent: Wednesday, August 07, 2002 1:32 PM To: Michael Sweeney Cc: php user group Subject: Re: [PHP] Authenticate files downloads Would I do this with fpasstru(). The doc says it sends it, to stdout how could I send it to the users browser to download, or is the browser considered stdout? --- Michael Sweeney <sweeney@verisity.com> wrote: > You put the files in a directory outside your web > document tree and use > php to transfer the files. You'll need to send a > header with the > appropriate mime type for the file. > > ..mike.. > > On Tue, 2002-08-06 at 13:51, Daniel Guerrier wrote: > > I'm trying to use php to validate if a user has > > permission to download a file. I can restrict > them > > from accessing the .php file that has the download > > links. But how do I stop someone from typing in > the > > path to the file directly and downloading it. > > > > > > > __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#111468) next »