I remember someone posted a bit of code that read one of the ENV vars to
grab the current user logged into a .htaccess protected area.
Does anyone have that code or remember what it was?
Troy
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsu
Let me add something to this question. I am not referring to
$ENV{'REMOTE_USER'};
It was code using something like $ENV{HTTP_AUTHENTICATED}. I don't
recall exactly what it was but I think it was something like that.
Troy
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL
to be more specific this is what i i'm trying to do.$number = 0;- we have a job number variablei want to have 3 "child" processes where each one will pause for 5 seconds. "sleep (5)" and increase the $number++;generate a random number ($weight) from 48-62 using the "RAND" command. an
Troy wrote:
> I remember someone posted a bit of code that read one of the ENV vars to
> grab the current user logged into a .htaccess protected area.
>
> Does anyone have that code or remember what it was?
On APache, there are only two vrbls normally set in addition the ones:
AUTH_TYPE = ba
how can i retrieve current time & date in order to store them into 2 variables ($date,$time)
and then store them into a file?Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
Check out the localtime function...
perldoc -f localtime
You can take the resulting list of date/time elements & create $date and
$time.
Jason
If memory serves me right, on Wednesday 06 February 2002 17:04, Chris Nikou
wrote:
> how can i retrieve current time & date in order to store them in
Chris Nikou wrote:
> how can i retrieve current time & date in order to store them into 2
> variables ($date,$time)
>
> and then store them into a file?
Change the format to what you want:
use strict;
use POSIX;
my $date = strftime ("%d-%b-%Y", localtime);# 06-Feb-2002
my $time = strft
It wasn't an Apache variable from what I recall.
I believe it was one that the browser uses to maintain authentication
when moving around within protected areas.
I could be wrong.
Troy
> -Original Message-
> From: $Bill Luebkert [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 0
Troy wrote:
> It wasn't an Apache variable from what I recall.
>
> I believe it was one that the browser uses to maintain authentication
> when moving around within protected areas.
Well, Apache (or whatever webserver) is the one that passes those vrbls on
to the ENV (not the browser). Howeve