Warning: 1 is not a valid File-Handle resource
| From: | Richard Kurth | Date: | Mon, 02 Apr 2001 23:59:42 +0000 |
| Subject: | Warning: 1 is not a valid File-Handle resource | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-46711@lists.php.net to get a copy of this message | ||
What is causing this error
Warning: 1 is not a valid File-Handle resource in
c:/httpd/htdocs/autosetup/auto/createaccount.php on line 88
This is the cod in question
$tab = chr(9); // define tabulator
if(file_exists("userdata")) {
$fp2=fopen ("userdata","r")or die("unable to open file ($userdata)");
flock($fp2, 2); //unless ($use_flock == 0);
while ($data = fgetcsv ($fp2, 1000, $tab)) { <---this is line 88
$num = count ($data);
$row++;
for ($c=0; $c<$num; $c++) {
}