Hello,
The problem is, that script outputs Last line from the file (and not first
line, as expected)!
4 hours spent seeking for mistake. Hopeless.
The script should read all the filenames in the directory,
then open each file to read first line from file and output this line.
Hi Roman,
This line is your problem.
$lines = preg_replace(/\n/, br, $lines);
You're replacing your newlines with br tags.
Your explode won't find anything because it's looking for \n 's.
Labunski wrote:
Hello,
The problem is, that script outputs Last line from the file (and not first
2 matches
Mail list logo