Puoi utilizzare la funzione file_get_contents()