|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-06 02:44 UTC] cynic@php.net
[2001-03-01 21:57 UTC] sniper@php.net
[2001-04-10 09:42 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 14:00:01 2025 UTC |
when reading from an existing file the following line will work correctly: $byte = @fread($fp,2) or die("ERROR: Can't read from file."); but the next line will cause the script to "die" no matter if it the beginning or halfway the file. $byte = @fread($fp,1) or die("ERROR: Can't read from file."); the ini file is the standard ini file with the timeout set to 0 so it doesnt time out. the script is run in an MSDos shell in windows.. It works fine till it needs to read 1 single byte from a file..