我使用的是Quickbooks PHP API,當我們將allow_url_fopen設置爲true時它工作正常。PHP Quickbooks API問題allow_fopen_url
But when we set allow_url_fopen to false then this API is not working.
I found that fetch function of OAuth library is not getting any response.
When I debug, it gives error like this "Fatal error: Uncaught exception 'OAuthException' with message 'making the request failed (dunno why)' "
要使用OAuth,我們必須將allow_url_fopen設置爲true?
API正在使用OAuth庫並獲取內容,它正在使用它的fetch(http://php.net/manual/en/oauth.fetch.php)函數。 – Apoorva
獲取方法很可能使用我前面提到的其中一個函數。在使用oAuth庫時,可以使用libcurl進行編譯,據我瞭解,lib curl不考慮allow_url_fopen設置。 –