Re: [PHP] help needed with crypt()

2002-12-03 Thread chandrakantreddy
Hi I made some changes to this script but still it is not working > > cyc>function authenticate($user,$pass) { > cyc> $result = -1; > cyc> $data = file("shadow"); /* permission > every > cyc> one read */ > > cyc> foreach($data as $line ) { > cyc> $

[PHP] help needed with crypt()

2002-12-03 Thread chandrakantreddy
Hi The script is not working. function authenticate($user,$pass) { $result = -1; $data = file("shadow"); /* permission every one read */ foreach($date as $line ) { $arr = explode(":",$line); if($arr[0] == $user) { /* user