note 30287 added to function.fgetc

From: Date: Thu, 13 Mar 2003 02:44:34 +0000
Subject: note 30287 added to function.fgetc
Groups: php.notes 
Request: Send a blank email to php-notes+get-45198@lists.php.net to get a copy of this message
I am writing a PHP program that parses syslog data into a mySQL database. I have come across a problem. I have a text file that contains: from=<a.degruiter@xpedite.com.au> When I run the following code, $handle = fopen ("testfile.txt", "r"); while (!feof ($handle)) { $buffer = fgetc($handle); echo $buffer; } fclose ($handle); It outputs only from= Does anyone know why??? -- http://www.php.net/manual/en/function.fgetc.php http://master.php.net/manage/user-notes.php?action=edit+30287 http://master.php.net/manage/user-notes.php?action=delete+30287 http://master.php.net/manage/user-notes.php?action=reject+30287

« previous php.notes (#45198) next »