puoi utilizzare anche la funzione
http://it.php.net/file_get_contents