Re: iterating over /etc/group
| From: | teo at gecadsoftware dot com | Date: | Wed, 04 Jul 2001 23:26:10 +0000 |
| Subject: | Re: iterating over /etc/group | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56244@lists.php.net to get a copy of this message | ||
Hi Arcady!
On Wed, 04 Jul 2001, Arcady Genkin wrote:
> 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?
>
system ("/usr/bin/id $user -G");
-- teodor