Re: Re: security of stand alone script
| From: | Stephen | Date: | Sun, 24 Nov 2002 18:13:13 +0000 |
| Subject: | Re: Re: security of stand alone script | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125823@lists.php.net to get a copy of this message | ||
Just a little note. Don't use $remote_addr. I would strongly recomend using
$HTTP_SERVER_VARS["REMOTE_ADDR"].
----- Original Message -----
From: "gamin" <gamin@vsnl.net>
To: <php-general@lists.php.net>
Sent: Sunday, November 24, 2002 1:10 PM
Subject: [PHP] Re: security of stand alone script
> i guess i can use $remote_addr to see if the user has an IP.
>
> But still out of curosity - any way of knowing the user that called the
> script ?
>
> gamin.
>
> Gamin" <gamin@vsnl.net> wrote in message
> news:20021124173744.57768.qmail@pb1.pair.com...
> > Hi,
> >
> > Running Red Hat 7.2, PHP 4.0.6. Is there any way of knowing if a
> certain
> > PHP script was run from the command line, shell script or through the
> > webserver (Apache). May be i could check the user calling the script and
> > find out but how would i do that ?
> >
> > thx in advance
> >
> > gamin
> >
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>