[RESOLVED] errors i cant find
wts wrong with these snippets?
Code:
$data = $_POST['first_name'] . "\t" . $_POST['last_name'] . "\t" . $_POST['email'] . "\t" . $_POST['username'] . "\t" . crypt($_POST['password'] . "\t" . $dir . "\r\n";
fwrite ($fp, $data);
and here it says call to undefined function fgetcvs ()
Code:
if (isset ($_POST['submit']))
{
$loggedin = FALSE;
$fp = fopen ('../users/users.txt', 'rb');
while ($line = fgetcvs ($fp, 100, "\t"))
{
if (($line[0] == $_POST['username']) AND ($line[1] == crypt ($_POST['password'], $line[1])))
{
$loggedin = TRUE;
break;
}
}
Re: [RESOLVED] errors i cant find
You're welcome, and good luck. :)