Bug #3895: fopen / multiple files
| From: | c dot lukas at eit dot de | Date: | Wed, 22 Mar 2000 14:31:56 +0000 |
| Subject: | Bug #3895: fopen / multiple files | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17137@lists.php.net to get a copy of this message | ||
From: c.lukas@eit.de
Operating system: linux
PHP version: 3.0.14
PHP Bug Type: Other
Bug description: fopen / multiple files
using the following lines of code:
$fd=fopen("$file1","r") || die ("Internal Error\n");
$content=fread($fd,filesize($file1));
echo "$content</br>";
fclose("$fd");
$fh=fopen("$file2","r") || die ("Internal Error\n");
11 $content=fread($fh,filesize($file2));
echo "$content</br>";
13 fclose($fh);
results in:
Text from file1
Warning: Unable to find file identifier 1 in /usr/local/htdocs/test.php3 on line 11
Warning: Unable to find file identifier 1 in /usr/local/htdocs/test.php3 on line 13