At 19:10 24.11.2002, gamin said:
>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 ?

If the script is called via command line, at least these fields in the
$_SERVER array are empty/unset:
I don't even know if the $_SERVER array is set at all.

You can disable any PHP script to be run from the command line by setting
the appropriate file permissions (e.g. chown root:apache, chmod 640 *).

   >O     Ernest E. Vogelsinger
   (\)    ICQ #13394035

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to