Thanks I'll give that a go tomorrow.
Regards Graham -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ted Roche Sent: 19 March 2008 19:40 To: profox@leafe.com Subject: Re: [NF] Unix webhosting - directory password protection On Wed, Mar 19, 2008 at 2:19 PM, Graham Brown (CompSYS) <[EMAIL PROTECTED]> wrote: > > Does anyone know how to retrieve the user name (and password) they used to > login to the folder either with PHP/Perl? I want to basically have "Welcome > back..." then the persons name. > <?php if(isset($_SERVER['REMOTE_USER'])) { $cLoginName = $_SERVER['REMOTE_USER']; } else { $cLoginName = "Intruder! Thief! Alarm!" } ?> -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.