Since you're using a break to determine when to leave why not...
> <?php
> $handle = fopen ("http://www.php.net/", "rb");
> $contents = "";
while (!(feof($handle)))
> {
> $data = fread ($handle, filesize ($filename));
> if (strlen($data) == 0) {
> break;
> }
> $contents .= $data;
> }
> fclose ($handle);
> ?>-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

