# Local host apache and php problem

**URL:** <https://forum.kirupa.com/t/local-host-apache-and-php-problem/123027>\
**Category:** Uncategorized\
**Created:** [September 19, 2004, 4:51pm UTC](https://forum.kirupa.com/t/local-host-apache-and-php-problem/123027 "2004-09-19T16:51:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![icio](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/icio/32/484_2.png) [@icio](https://forum.kirupa.com/u/icio)\
**Post date:** [September 19, 2004, 4:51pm UTC](https://forum.kirupa.com/t/local-host-apache-and-php-problem/123027/1 "2004-09-19T16:51:12Z")

</div>

I’ve just set up apache on my computer following the tutorial on kirupa -\> [http://www.kirupa.com/web/apache\_php.htm](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:

```php
$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 🙂

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.
