Hi, I am trying to make this thing that will open a specified file, read the contents of it and print it to the screen. The thing of it is I want all the data in text printed to the screen.
For example, I tell it to open somthing.html and when it prints to the screen it prints the actual compiled html... not the text of html but it worked kind of as a link. I hope you fallow.
Any how I was wondering if there is a way to force it to print in text?
All help is apreciated.
HERE IS A SAMPLE OF THE WAY I WAS DOING THIS.
$file_loc="$sorc";
// path to the file
$whattoread = fopen($file_loc, "r");
// opens the file for reading
$file_contents=fread($whattoread, filesize($file_loc));
// puts contents of whole file in to varaible
fclose($whattoread);
// closes file
echo "$file_contents"; }}