readfile() function reads in a file and outputs it to standard output. : readfile « File Directory « PHP






readfile() function reads in a file and outputs it to standard output.

 
Its syntax is: int readfile (string file [, int use_include_path])

<?
    $restaurant_file = "data.txt";
    print readfile($restaurant_file);
?>
  
  








Related examples in the same category

1.readfile.php