2017-10-05 12 views
0

私はPHPを初めて使うので、私は未経験で謝罪します。私はWindows 10環境で作業しており、WAMPをインストールしてApache、PHP、およびMySQLに対応しています。私はAMFを使用してZendと通信するAdobe AIRアプリケーションのためのいくつかのremoteObject Webサービスを作成しています。私はすべての動きを得るためにindex.phpファイルを作成しましたが、index.phpファイルを参照すると、エラー。ここでindex.phpファイルです:Include_Path、once required、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

あなたはおそらくZendオートローダーも必要とするでしょう。あなたは代わりに作曲家とこれを行うエールですか? –

+0

あなたはinclude_path = "c:/ wamp64/www/ZendFramework/library"を試しましたか? – shashi

+0

インクルードパスでスラッシュを試しましたか?バックスラッシュはエスケープ文字として扱われている可能性があります –

答えて

0

何かに気づいたこの質問に答えるためのティム・ファウンテンへ

おかげで、私は百万年前に見たことがないでしょう

関連する問題