On Tuesday, June 11, 2002, at 09:58 , phumes1 wrote:

> Weird.
>
> I put the below lines in my perl script and ran it from the command 
> prompt and from a web browser yet the results are telling me
> that "You have started this script from the command prompt"
>
> Why?
>
> Is the HTTP_USER_AGENT check not correct?

think about it - I write a piece of code that queries
the CGI piece of code - I can set that and spoof you.

if you want to check if there is a controlling terminal
with say

        if (-t) {
                # this side sees a tty line attached.
        }else{
                #this is not called by a process with a controlling terminal
        }


ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to