private function FileGetContents($file) {
    $fileObj = new SplFileObject($file, 'r');
    while (!$fileObj->flock(LOCK_EX)) {
      usleep(1);
    }
    $str = $fileObj->fread($fileObj->getSize());
    $fileObj->flock(LOCK_UN);
    return $str;
  }
private function FileGetContents($file) {
    $fileObj = new SplFileObject($file, 'r');
    while (!$fileObj->flock(LOCK_EX)) {
      usleep(1);
    }
    $str = $fileObj->fread($fileObj->getSize());
    $fileObj->flock(LOCK_UN);
    return $str;
  }
private function FileGetContents ( $ file ) { $ fileObj = new SplFileObject ( $ file , 'r' ) ; while ( ! $ fileObj -> flock ( LOCK_EX ) ) { usleep ( 1 ) ; } $ str = $ fileObj -> fread ( $ fileObj -> getSize ( ) ) ; $ fileObj -> flock ( LOCK_UN ) ; return $ str ; }
Retrieves contents of a file
@param  string  $file
@return string
Retrieves contents of a file