note 30286 added to function.fread
| From: | (a.degruiter@xpedite.com.au) | Date: | Thu, 13 Mar 2003 02:43:12 +0000 |
| Subject: | note 30286 added to function.fread | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45197@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,
$filename = "testfile.txt";
$handle = fopen ($filename, "r");
$contents = fread ($handle, filesize ($filename));
fclose ($handle);
print $contents;
It outputs only
from=
Does anyone know why???
--
http://www.php.net/manual/en/function.fread.php
http://master.php.net/manage/user-notes.php?action=edit+30286
http://master.php.net/manage/user-notes.php?action=delete+30286
http://master.php.net/manage/user-notes.php?action=reject+30286