[PHP] Re: interact with .htaccess

2003-06-15 Thread Peter Berglund
what I mean is if you can create a form page in PHP prompting for a username and password and then redirect into an .htaccess protected directory without having the server pop up another username/password box? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: interact with .htaccess

2003-06-15 Thread Adrian
you could redirect to http://username:[EMAIL PROTECTED]/foo what I mean is if you can create a form page in PHP prompting for a username and password and then redirect into an .htaccess protected directory without having the server pop up another username/password

Re: [PHP] Re: interact with .htaccess

2003-06-15 Thread Ernest E Vogelsinger
At 13:04 15.06.2003, Adrian said: [snip] you could redirect to http://username:[EMAIL PROTECTED]/foo [snip] with the drawback that your highly sensitive account information is visible at the URL and will be stored in

[PHP] Re: interact with .htaccess

2003-06-15 Thread Peter Berglund
ok, I change my question, how do I protect downloadable files from users that are not valid? without the use of htaccess? Peter Berglund [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] I want to send user and password from php to a protected directory. For example: If I go directly

Re: [PHP] Re: interact with .htaccess

2003-06-15 Thread James Hicks
I think what you really want to do is place your downloadable files in a directory that is not in your httpd's document root and use a password protected PHP script to access these files and send them to the user after authentication. I think you could accomplish this with the fpassthru()

Re: [PHP] Re: interact with .htaccess

2003-06-15 Thread Ernest E Vogelsinger
At 16:32 15.06.2003, Peter Berglund said: [snip] ok, I change my question, how do I protect downloadable files from users that are not valid? without the use of htaccess? [snip] Have a look at an example on my

Re: [PHP] Re: interact with .htaccess

2003-06-15 Thread Justin French
See this article: http://www.zend.com/zend/trick/tricks-august-2001.php It got me well on the way to understanding this. You will need to combine with some sort of user/session/login management script, but there are hundreds of articles on the web about this. Personally, I started with an