Hi, Am 2005-09-06 12:18:18, schrieb [EMAIL PROTECTED]:
> $etcpasswd = "username:passwd:123:345::/home/username:/bin/sh";
> $pwdarr = explode(":", $etcpasswd);
> echo $pwdarr[4];
OK, this works now.
But can I read a whome /etc/passwd into an 3d array ?
This would avoid multiple reads...
I know, that I can have a file as array with file() but
whats the best solution to put it into 3D style ?
I need only to extract the $USER, $GEKO and $HOMEDIR for
UID >= 1000.
Greetings
Michelle
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature

