Php 在unix服务器上找不到包含错误(尽管我不明白为什么它是大写)

Php 在unix服务器上找不到包含错误(尽管我不明白为什么它是大写),php,unix,yii,include,case-sensitive,Php,Unix,Yii,Include,Case Sensitive,我在UNIX服务器上的Yii设置中遇到以下错误: include(MyAppApiController.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory 它似乎不起作用,因为它在服务器上是区分大小写的,但我查看了代码,它只显示为区分大小写。谁能告诉我为什么会这样做 另外,它在我的windows环境中运行良好,因此

我在UNIX服务器上的Yii设置中遇到以下错误:

include(MyAppApiController.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
它似乎不起作用,因为它在服务器上是区分大小写的,但我查看了代码,它只显示为区分大小写。谁能告诉我为什么会这样做


另外,它在我的windows环境中运行良好,因此我仅在unix服务器上发现此错误

您在代码中忘记了引号。 更改includeMyAppapicController.php 到 包括MyAppApiController.php

希望它能回答你的问题