[PHP-DEV] _php3_getuid() Is this the correct function? From: Ross Keatinge (rossk <email protected>)
Date: 03/22/99

Hi there

I have modified my main.c so that php will only parse files owned by
me. I am running it as a cgi with setuid. I am rather a novice at this
so I'd appreciate someone confirming that the function _php3_getuid()
returns the uid of the owner of the script being run. It is returning
the correct number but I'd like to be absolutely sure that it is the
right number for the right reason.

I have some code like this where xxxx is my uid.

if (_php3_getuid() != xxxx)
        return FAILURE;

This should stop anyone else on the machine running their own scripts
with my permissions.

Thanks
Ross

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>