_php3_getuid() Is this the correct function?

From: Date: Tue, 23 Mar 1999 04:50:38 +0000
Subject: _php3_getuid() Is this the correct function?
Groups: php.dev 
Request: Send a blank email to php-dev+get-4732@lists.php.net to get a copy of this message
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@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4732) next »