> -----Original Message-----
> From: t [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 3:04 PM
> To: [EMAIL PROTECTED]
> Subject: ending a script
> 
> 
> I have now got my script to work off of my html form (thanks 
> for all the suggestions, turns out if
> i take out the eq out of the if/then statements, it works), 
> but i have found a rather bizarre
> problem. run against the html form it works fine, BUT, if i 
> just try to run the cgi script, it
> just keeps running and fills up the error log with 
> unitialized value errors over and over. 

Why does it "keep running"? Sounds like a glitch in the script.

The messages about unitialized value can be suppressed with

   no warnings 'uninitialized';

> We have
> constant idiots who keep running things against our server, 
> and so i know we could end up having
> an overload if we are not careful. How do i get it to end if 
> it didn't come from the form>?

A simple way is to check for $ENV{GATEWAY_INTERFACE}. If it's defined,
you're most likely running under the web server. You could also check
whether STDIN is a socket. Neither of those are foolproof.

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

Reply via email to