public function getFileContent($file, $asUser = null) { $result = $this->exec('cat ' . escapeshellarg($file), $asUser); return implode("\n", $result['output']); }