Hi All,
I was wondering if this was possible?
I'm after a function which will loop through a folder and read each text file and place them in their own box/div which have a vertical scroll as these text files are pretty big.
I have the loop working and I can get it to display all the text, however I'm struggling on how to split the text up to make it easier to read.
Any help would be appreciated
Cheers
Swain90
I was wondering if this was possible?
I'm after a function which will loop through a folder and read each text file and place them in their own box/div which have a vertical scroll as these text files are pretty big.
I have the loop working and I can get it to display all the text, however I'm struggling on how to split the text up to make it easier to read.
Code:
foreach (glob("D:/Testing/*.txt") as $filename) {
echo nl2br( file_get_contents($filename) );
}
Any help would be appreciated
Cheers
Swain90
Last edited: