You are here

public function PHPVideoToolkit::readLog in Video 7

Same name and namespace in other branches
  1. 7.2 libraries/phpvideotoolkit/phpvideotoolkit.php5.php \PHPVideoToolkit::readLog()

* Reads the current log file * * @access public *

Return value

string|boolean Returns the current log file content. Returns false on failure.

File

libraries/phpvideotoolkit/phpvideotoolkit.php5.php, line 3700

Class

PHPVideoToolkit

Code

public function readLog() {
  if ($this->_log_file !== null && is_file($this->_log_file)) {
    $handle = fopen($this->_log_file, 'r');
    $contents = fread($handle, filesize($this->_log_file));
    fclose($handle);
    return $contents;
  }
  return false;
}