[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

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 cycfunction authenticate($user,$pass) { cyc $result = -1; cyc $data = file(shadow); /* permission every cyc one read */ cyc foreach($data as $line ) { cyc $arr =