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

If the script is called via command line, at least these fields in the
$_SERVER array are empty/unset:
    SERVER_NAME
    REMOTE_IP
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
    ^     http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to