I would like to read a .txt file and post whatever that is in it on the webpage, but I do not know what is the code like. Can anyone Please help me with it? Thank you so much.
Regards Derrick Teu
hi i think this help u lil
// get contents of a file into a string $filename = "something.txt"; $fd = fopen ($filename, "r"); $contents = fread ($fd, filesize($filename)); fclose ($fd);
I largely use txt files for all my scripts, check the guestbooks scripts at www.onlinetools.org and the article at http://www.onlinetools.org/editablepages.php. Hope that helps you, cheers,
Chris
Uh oh, wrong URL http://www.onlinetools.org/articles/editablepages.php is the right one...
/chris