1

我面临一个奇怪的问题。我正在尝试将 REST api 集成到 phonegap 应用程序中。当我http://myserver/index.php?m=login通过浏览器中的休息客户端请求网址时,它工作正常。

但是当我通过 jQuery ajax 调用它时,它返回以下错误:

警告:include(C:/Domains/my-portal.org/httpdocs/mmode/template/mobile/index.php) [function.include]:无法打开流:C:\Domains\my 中没有这样的文件或目录-portal.org\httpdocs\mmode\index.php 第 13 行

警告:include(C:/Domains/my-portal.org/httpdocs/mmode/template/mobile/index.php) [function.include]:无法打开流:C:\Domains\my 中没有这样的文件或目录-portal.org\httpdocs\mmode\index.php 第 13 行

警告:include() [function.include]:无法打开“C:/Domains/myportal.org/httpdocs/mmode/template/mobile/index.php”以包含(include_path='.;./includes;./pear ;C:\PHP\includes') 在第 13 行的 C:\Domains\my-portal.org\httpdocs\mmode\index.php

现在问题不是跨域脚本,因为响应头返回“ Access-Control-Allow-Origin: *”。而且我还在科尔多瓦设置中将域列入白名单。

谁能指导我这里可能是什么问题?

4

0 回答 0