Opening a remote file
<?php $fh = fopen('http://www.example.com/robots.txt','r') or die($php_errormsg); ?>