PHP-Based Authentication Security?
| From: | Coggeshall, John | Date: | Wed, 06 Mar 2002 20:36:49 +0000 |
| Subject: | PHP-Based Authentication Security? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-87518@lists.php.net to get a copy of this message | ||
Hey all..
I've got a question -- I'd like to restrict access to entire directories
based on if the user has been authenticated or not. Basically, I'd like
to set up a auto-include *FROM APACHE* to run a PHP script prior to
sending any documents what-so-ever and only send the requested document
if the PHP script allows it. So..
Request Made -> PHP Script Runs -> PHP Checks Authentication -> PHP says
OK -> Apache sends file normally
Or..
Request Made -> PHP Script Runs -> PHP Checks Authentication -> PHP says
NO -> Apache stops dead in it's tracks or displays a HTTP error
Is this possible? It has to work for any document or MIME type and be
restrictable by directory... (i.e. I just want this happening in a
/secure/ directory)
John
-----Original Message-----
From: Steven Walker [mailto:steve@walkereffects.com]
Sent: Wednesday, March 06, 2002 3:22 PM
To: php-general@lists.php.net
Subject: [PHP] FYI Using Qmail & PHP
To whom it may concern,
I recently had an ordeal trying to get PHP generated email to work using
with qmail. After switching web servers, suddenly my automated emails
were not working, coming out blank or with mime attachments.
If anybody runs into the problem, the fix is quite simple (but obscure).
Simply use single '\n' rather than '\r\n'. For some reason (I don't know
why) qmail doesn't like the CRLF.
Steven J. Walker
Walker Effects
www.walkereffects.com
steve@walkereffects.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php