I'm trying to read through a list of entries in a text file seperated by \r and do one thing if I've found a match and something else if I don't. Here's my code:
$masterFileOpen = fopen ("D:/APACHE/data$userListFileName", "a");
if ($masterFileOpen) { $listData = file ("D:/APACHE/data/$userListFileName");
$n = 0;
while ($n <= $listData[$n]) {
if ($listData[$n] == $fullName) {
$inUse = "TRUE";
} else {
$inUse = "FALSE";
}
$n++;
}
Here are my errors:
Notice: Undefined offset: 0 in D:\APACHE\handleForm.php on line 33
Notice: Undefined offset: 1 in D:\APACHE\handleForm.php on line 32
what are these referring to? I've been all over this section and can't find any problems. I haven't been doing this for very long so I'm probably just ill-informed.
Any suggestions?