Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Script running online?

by PotPieMan (Hermit)
on Mar 26, 2001 at 10:14 UTC ( [id://67116] : note . print w/replies, xml ) Need Help??

in reply to Script running online?

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.