PHP fopen May 11, 2012 Pramod T P It opens file or URL Example <?php $fp = @fopen(“test.txt”, “r”); if ($fp) { while (($content = fgets($fp, 4096)) !== false) { echo $content; } fclose($fp); } ?>