2017-10-05 4 views
0

전 PHP를 처음 사용하므로 익숙하지 않은 점 사과드립니다. 저는 Windows 10 환경에서 작업 중이며 Apache, PHP 및 MySQL을 제공하기 위해 WAMP를 설치했습니다. AMT를 사용하여 Zend와 통신 할 Adobe AIR 앱용 remoteObject 웹 서비스를 만들고 있는데, 모든 내용을 얻기 위해 index.php 파일을 만들었지 만, index.php 파일을 탐색 할 때 모든 종류의 오류. 여기에 index.php 파일입니다 :Include_Path (한 번만 요구됨) Zend를 사용하여 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 

이 구성을 얻는 데 도움이되는 모든 사항은 정말로 감사하겠습니다. 정말 고마워!

+0

아마 젠드 오토로더가 필요할 것이다. 대신 작곡가와 함께이 일을 할 수 있습니까? –

+0

include_path = "c :/wamp64/www/ZendFramework/library"시도한 적이 있습니까 – shashi

+0

포함 경로에서 슬래시를 사용 했습니까? 백 슬래시가 이스케이프 문자로 취급 될 수 있습니다 –

답변

0

는 "그게 될 수 있도록 귀하의 질문에 당신은, 경로 주변에 둥근 따옴표를 가지고 나타나는을 변경하는 데 도움이 있는지 확인 -.. 팀 분수"팀 분수

감사합니다 뭔가를 발견이 질문, 응답에 대한 나는 백만 년 만에 보지 못했을 것이다.

관련 문제