Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Script running online?

by PotPieMan (Hermit)
on Mar 26, 2001 at 10:14 UTC ( #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.

--PotPieMan

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://67116]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2021-04-10 22:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?