note 27041 rejected from function.fclose by tix
| From: | tix@php.net | Date: | Thu, 21 Nov 2002 07:57:24 +0000 |
| Subject: | note 27041 rejected from function.fclose by tix | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39788@lists.php.net to get a copy of this message | ||
Why does this not work:
$fp = fopen ('doc/use_menu.txt','r');
fpassthru($fp);
fclose($fp);
It says: Warning: fclose(): 1 is not a valid File-Handle resource...
But it does open it correctly, without the fpassthru it doesnt give trouble...