![]() |
|
|
+ Search |
![]()
|
Nov 15th, 2001 20:49
Tim Dorr, Daniel Platon,
Either:
$filename = "c:\files\file.txt";
$fd = fopen ($filename, "rt");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
where $contents is a string containing the contents of the file
$filename
OR
readfile("c:\files\file.txt):
which will take the file and output it directly to the page.