Perl Monk, Perl Meditation | |
PerlMonks |
Re: Script running online?by PotPieMan (Hermit) |
on Mar 26, 2001 at 10:14 UTC ( [id://67116]=note: print w/replies, xml ) | Need Help?? |
It may not be absolute, but I guess you could check $ENV{'USER'}. I do most of my development and testing as one user, whereas I run my scripts as my Apache user. Maybe?
Update: Sorry, this won't work. I should have checked before posting, but $ENV{'USER'} is not set by the Web server for security reasons. So, chromatic's response is probably the way to go. Sorry for the confusion.
In Section
Seekers of Perl Wisdom
|
|