fopen

It opens file or URL

Example

<?php

$fp = @fopen(“test.txt”, “r”);

if ($fp) {

while (($content = fgets($fp, 4096)) !== false) {

echo $content;

}

 fclose($fp);

}

?>