note 30287 deleted from function.fgetc by betz

From: Date: Thu, 13 Mar 2003 10:27:45 +0000
Subject: note 30287 deleted from function.fgetc by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-45206@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???

« previous php.notes (#45206) next »