protected function getFilePath($filename)
    {
        if ($filename{0} == '/' || strstr($filename, ':') !== false) {
            return $filename;
        }

        return realpath(getcwd() . '/' . $filename);
    }
protected function getFilePath($filename)
    {
        if ($filename{0} == '/' || strstr($filename, ':') !== false) {
            return $filename;
        }

        return realpath(getcwd() . '/' . $filename);
    }
protected function getFilePath ( $ filename ) { if ( $ filename { 0 } == '/' || strstr ( $ filename , ':' ) !== false ) { return $ filename ; } return realpath ( getcwd ( ) . '/' . $ filename ) ; }
Returns a real file path.

@param string $filename

@return string
Returns a real file path .