I'm looking for a simple PHP blog. There's a catch... [more inside]
Ok, another PHP question... this one less stupid than my last one (hopefully). XML/XSLT.... [mi] [more inside]
How do you read the first n lines of a file in PHP where the line lengths are variable and line n has '----------' on it (that is finding line n by pattern matching)? I see how to read the whole thing, but I only want a few lines of many files. (Has to work on Windows and Unix). Thanks.