SyntaxFix
Write A Post
Hire A Developer
Questions
I would use the SplFileObject class...
$file = new SplFileObject("filename"); if (!$file->eof()) { $file->seek($lineNumber); $contents = $file->current(); // $contents would hold the data from line x }