You are here

public function PHPVideoToolkit::readLog in Video 7.2

Same name and namespace in other branches
  1. 7 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 3369
Libary to access FFmpeg

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;
}