più semplicemente puoi usare file_get_contents()