As I believe someone else said, file_get_contents() is the perfered way. Bare in mind however that reading off a network will probably be slow compared to other operations. This of course depends on the speed of your network, and the complexity of the other operations.