File Directory Php

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