Hi all,
I have a textfile with 3 contents:
First line: Name
Second line: Picture name
third line: text
The third content was put from a multiline textfield in my textfile
I read the first 2 lines and the 3rd. The third line is just one line from the textfile, which actually contains more than one. How can I make it read to the end of the file.
I'm pretty new at PHP 😉
Thanx in advance
Olli
for (;$i=readdir($handle))
{
if (stristr($i,".txt")) // Filter only Text files
{
$readarr = file($destdir.$i); // path to textfile
$name = trim($readarr[0]);
$pic = trim($readarr[1]);
$comment = trim($readarr[3]);
}
}