Include_Path,需要一次,PHP 使用 Zend 的问题

Include_Path, require once, PHP issues using Zend

我是PHP的新手,所以对于我的经验不足深表歉意。我在 Windows 10 环境中工作,并安装了 WAMP 来为 Apache、PHP 和 MySQL 提供服务。我正在为将使用 AMF 与 Zend 通信的 Adob​​e AIR 应用程序创建一些 remoteObject web 服务,并且我创建了一个 index.php 文件来启动所有内容,但是当我浏览到 index.php 文件时,我得到各种错误。这是 index.php 文件:

index.php

<?php
   require_once('Zend/Amf/Server.php');
   require_once('HalfService.php');

   $server = new Zend_Amf_Server();
   //adding our class to Zend AMF Server
   $server->setClass("HalfService");
   //Mapping the ActionScript VO to the PHP VO
   //you don't have to add the package name
   $server->setClassMap("VOService", "VOService");
   echo($server -> handle());
?>

我的文件结构是:

C:/wamp64/www/
              ZendFramework/library/Zend/Amf/Server.php
              zendamf_remote/index.php
                             HalfService.php
                             VOService.php

我试图在我的 php.ini 文件中创建一个看起来像这样的 include_path,但没有成功:

include_path = “c:\wamp64\www\ZendFramework\library”

最后,这是我在浏览器中浏览到 index.php 时遇到的错误:

( ! ) Warning: require_once(Zend/Amf/Server.php): failed to open stream: No such file or directory in C:\wamp64\www\zendamf_remote\index.php on line 2

( ! ) Fatal error: require_once(): Failed opening required 'Zend/Amf/Server.php' (include_path='�c:\wamp64\www\ZendFramework\library�') in C:\wamp64\www\zendamf_remote\index.php on line 2

如能提供有关配置的任何帮助,我们将不胜感激。非常感谢!

"In your question you appear to have smart quotes around the path, so that may be it. See if changing that helps. – Tim Fountain"

感谢 Tim Fountain 回答了这个问题,他注意到了我在一百万年内都不会看到的东西