我有一个 Yii MVC 应用程序。在 Windows 操作系统下运行应用程序时,应用程序会找到并使用所需的文件。
我现在有 2 个操作系统,Linux 操作系统,一个,我的应用程序找到并使用该文件,另一个,它失败了。
$this->font1 = Yii::app()->baseUrl . '/protected/extensions/TextFigletCaptcha/flf/' . $this->font1 . '.flf';
if (!file_exists($this->font1)) {
throw new Exception('Font file not found!<br/>');
}
发生了什么 ?