note 32341 deleted from function.feof by didou
| From: | didou@php.net | Date: | Sat, 24 May 2003 05:06:58 +0000 |
| Subject: | note 32341 deleted from function.feof by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48935@lists.php.net to get a copy of this message | ||
Note Submitter: daniel@slashlog.org
----
You dont need to use is_resource() you can check if fopen() returns something TRUE or FALSE. You can
just
if ( ! $handle=fopen($file,'r') )
echo "fail to open " . $ file ;
Not that annoying...