<?php  
  $DOCROOT = $_SERVER['DOCUMENT_ROOT'];

  function fileLine ($lineNum, $file) {
    $count = 0;
    while (!feof($file)) {
      $count++;
      $line = fgets($file);
      if ($count == $lineNum) return $line;
    }
    die(.$lineNum.);
  }

  @ $fp = fopen(, 'r');
  if (!$fp) die();
  echo fileLine(7, $fp);
?>