<?php
// connect to handle a file
$file_handler = fopen("http://www.mysite.com/sitenotes.txt", "r");
/* to open a local file use this instead
$file_handler = fopen("data.txt", "r");
*/
// read the contents
$contents = fread($file_handler, filesize($file));
// close the file
fclose($file_handler);
// print the contents on your page
echo $contents;
?>
- Log in to post comments
Tags
