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:[EMAIL PROTECTED]] 
Sent: Wednesday, March 06, 2002 3:22 PM
To: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to