iterating over /etc/group
| From: | Arcady Genkin | Date: | Wed, 04 Jul 2001 06:06:39 +0000 |
| Subject: | iterating over /etc/group | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-56134@lists.php.net to get a copy of this message | ||
Does PHP provide no high-level means of iterating over the UNIX
/etc/group file, a la getgrent() C function? The task is to figure
out all groups that a user is in on a system with PHP in _safe mode_
(hence, cannot read from /etc/group directly).
Am I overlooking something?
Many thanks,
--
Arcady Genkin
i=1; while 1, hilb(i); i=i+1; end