private function tryReadFile($path) {
        if (!file_exists($path)) {
            return false;
        }

        $interval = 100000;
        $totalTime = 0;

        while (($result = file_get_contents($path)) === false) {
            if ($totalTime >= $this->accessTime) {
                return false;
            }

            usleep($interval);

            $totalTime += $interval;
        }

        return $result;
    }
private function tryReadFile($path) {
        if (!file_exists($path)) {
            return false;
        }

        $interval = 100000;
        $totalTime = 0;

        while (($result = file_get_contents($path)) === false) {
            if ($totalTime >= $this->accessTime) {
                return false;
            }

            usleep($interval);

            $totalTime += $interval;
        }

        return $result;
    }
private function tryReadFile ( $ path ) { if ( ! file_exists ( $ path ) ) { return false ; } $ interval = 100000 ; $ totalTime = 0 ; while ( ( $ result = file_get_contents ( $ path ) ) === false ) { if ( $ totalTime >= $ this -> accessTime ) { return false ; } usleep ( $ interval ) ; $ totalTime += $ interval ; } return $ result ; }
Trying to read the file.

@param string $path The path to the file to be read..

@return string|bool
Trying to read the file .