Re: [PHP] password protecting files, only allowing authorized users

2007-01-11 Thread Chris
Dave wrote: Hello, I'm using php and apache2 on a freebsd box. I know about .htaccess that the web server can provide, but i'm looking for something php can do, i want it to pop up a page when a user requests certain files, asking for a username and password. http://www.php.net/features.h

Re: [PHP] password protecting files, only allowing authorized users

2007-01-11 Thread Casey Chu
This is impossible with only PHP. You might need a combination of PHP and AJAX [Javascript]. On 1/11/07, Dave <[EMAIL PROTECTED]> wrote: Hello, I'm using php and apache2 on a freebsd box. I know about .htaccess that the web server can provide, but i'm looking for something php can do, i want

[PHP] password protecting files, only allowing authorized users

2007-01-11 Thread Dave
Hello, I'm using php and apache2 on a freebsd box. I know about .htaccess that the web server can provide, but i'm looking for something php can do, i want it to pop up a page when a user requests certain files, asking for a username and password. If those are valid the user is taken to a pa