Local host apache and php problem

I’ve just set up apache on my computer following the tutorial on kirupa -> http://www.kirupa.com/web/apache_php.htm

It’s working great, but it seems extra sensetive to things. for example, if i’m reading text file, and i want to put it into a variable i’d do this:

$page = fread($handle, filesize($file));

now, this works fine on my server, even when the file is empty, and i can echo it no problem and everything is hunky dorey :slight_smile:

but when i try it from my computer, and the text file is empty, it comes up with a warning saying that it needs to read an amount of the file greater than 0. it still works howeber, the file is echoed just fine.

how can i stop this??
thanks very much.