Hi all,
Hoping this is an easy one for someone out there. Ive had a fair look around and cant seem to locate anything to help me.
I have a file that gets called within a php script......
$file = "file.txt";
$fp = fopen($file,'r');
$info = fread($fp, filesize($file));
$info = nl2br($info);
From this you can see i add some breaks to each line......
After this is do a few other things to the text, but the last step i need to do is then remove the top line altogether.
Now....i would like to be able to use substr in the fashion that i know to just strip it all, but the problem is, this file.txt file changes all the time, so the first line is not always the same length.
If someone might be able to help me out with how to delete the first line entirely i would be very appreciative.
Kind Regards
Dave