In order to avoid the hassle of doing a fopen, fread etc, you can read a file using the following one line:
$contents = implode("",@file( $filename ) );
Many may already know this, just thought it would help those who don't.
PHP Developer Topics
PHP Developer Resources
PHP Developer References