|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-30 20:04 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 09:00:01 2025 UTC |
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