Re: Password protected directory
| From: | Bastien Koert | Date: | Tue, 02 Nov 2010 17:09:00 +0000 |
| Subject: | Re: Password protected directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309244@lists.php.net to get a copy of this message | ||
On Tue, Nov 2, 2010 at 1:05 PM, Ben Miller <biprellim@gmail.com> wrote:
> I need to access and read the files in a password protected directory with a
> PHP script using the readdir function. I'm already making users login to a
> secure area, so I don't want to make them enter a password again to access
> the files - is there a way to include the password with the readdir/opendir
> function with PHP?
>
>
>
> Thanks in advance.
>
>
>
> Ben
>
>
assign a session key to the user and just check if that session key is
set before using the standard account to access the file. Then the
password can be held in the config file and the user never sees it
--
Bastien
Cat, the other other white meat