note 30286 rejected from function.fread by betz
| From: | betz@php.net | Date: | Thu, 13 Mar 2003 10:27:31 +0000 |
| Subject: | note 30286 rejected from function.fread by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-45205@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???