Error Opening file

From: Date: Mon, 17 Feb 2003 20:24:39 +0000
Subject: Error Opening file
Groups: php.general 
Request: Send a blank email to php-general+get-135891@lists.php.net to get a copy of this message
Hello All; I am trying to open a File called cmi_list.txt ( stored at the same level as the php file) and then load these into an array. Now I check the $passport_codes with the value the User has entered and set the $flag accordingly <? .... ..... $PASSPORT_CODES =file("cmi_list.txt"); $count = count($PASSPORT_CODES); for($i=0 ; $i < $count ; $i++) { if ($PASSPORT_COUNT[$i] != $p_code ) $flag = "true"; else $flag = "false"; } if ($flag == "false")
    {
echo "Passport Code did match record on file\n\n"; exit;
    }
..... ..... ?> This does not seem to work correctly.

« previous php.general (#135891) next »