2012-04-02 9 views
1

Amazon Product API、Report API、Feeds APIを呼び出すすべてのメソッドを含むクラスファイルを作成しようとしています。 私はすべての必要なファイルを含める必要があります。 =========================AmazonProductsAPIフォルダからファイルをインクルードする際のパスエラー

:私は、このクラスファイルと同じパス上のすべてのアマゾンAPIクラスのフォルダを持って、私は次のように含めていますgetASIN

require_once 'AmazonProductsAPI/src/MarketplaceWebServiceProducts/Client.php'; 
require_once 'AmazonProductsAPI/src/MarketplaceWebServiceProducts/Model/GetCompetitivePricingForSKURequest.php'; 
require_once 'AmazonProductsAPI/src/MarketplaceWebServiceProducts/Model/SellerSKUListType.php'; 

//For putPrice (Price Change) 
require_once 'FeedsAPIClass/src/MarketplaceWebService/Client.php'; 
require_once 'FeedsAPIClass/src/MarketplaceWebService/Mock.php'; 
require_once 'FeedsAPIClass/src/MarketplaceWebService/Model/SubmitFeedRequest.php'; 

//For Updating Quantity and Price From Amazon Report API to Our DB 
require_once 'ReportsAPIClass/src/MarketplaceWebService/Client.php'; 
require_once 'ReportsAPIClass/src/MarketplaceWebService/Model/RequestReportRequest.php'; 
require_once 'ReportsAPIClass/src/MarketplaceWebService/Model/GetReportListRequest.php'; 
require_once 'ReportsAPIClass/src/MarketplaceWebService/Model/GetReportRequest.php'; 

====================================================== 

But i am getting error like: 

====================================================== 

    enter code here 
    PHP Warning: require_once(MarketplaceWebServiceProducts/Interface.php): failed to open stream: No such file or directory in /mnt/hgfs/keyur On My Mac/webs/keyur.iec.com/htdocs/vendors/AmazonAPI/AmazonProductsAPI/src/MarketplaceWebServiceProducts/Client.php on line 22 

    Warning: require_once(MarketplaceWebServiceProducts/Interface.php): failed to open stream: No such file or directory in /mnt/hgfs/keyur On My Mac/webs/keyur.iec.com/htdocs/vendors/AmazonAPI/AmazonProductsAPI/src/MarketplaceWebServiceProducts/Client.php on line 22 
    PHP Fatal error: require_once(): Failed opening required 'MarketplaceWebServiceProducts/Interface.php' (include_path='.:/usr/share/pear:/usr/share/php:/mnt/hgfs/keyur\ On\ My\ Mac/webs/keyur.iec.com/htdocs/vendors/AmazonAPI/AmazonProductsAPI/src') in /mnt/hgfs/keyur On My Mac/webs/keyur.iec.com/htdocs/vendors/AmazonAPI/AmazonProductsAPI/src/MarketplaceWebServiceProducts/Client.php on line 22 

    Fatal error: require_once(): Failed opening required 'MarketplaceWebServiceProducts/Interface.php' (include_path='.:/usr/share/pear:/usr/share/php:/mnt/hgfs/keyur\ On\ My\ Mac/webs/keyur.iec.com/htdocs/vendors/AmazonAPI/AmazonProductsAPI/src') in /mnt/hgfs/keyur On My Mac/webs/keyur.iec.com/htdocs/vendors/AmazonAPI/AmazonProductsAPI/src/MarketplaceWebServiceProducts/Client.php on line 22 

については===============================

// ==== ===================================

私のコンピュータによると、このパスは正しいものの、何が間違っているのか分かりません。 助けてください.........................

答えて

1

.config.inc.phpはあなたを助けることができる:

/*** 
* OPTIONAL ON SOME INSTALLATIONS 
* 
* Set include path to root of library, relative to Samples directory. 
* Only needed when running library from local directory. 
* If library is installed in PHP include path, this is not needed 
*/  
set_include_path(get_include_path() . PATH_SEPARATOR . '../../.'); 
関連する問題