我正在尝试在我的应用程序中实现 Wolfram Alpha API。我下载他们的语言库并在我的浏览器中加载他们的示例页面。
然而,我得到了
Warning: simplexml_load_file(http://api.wolframalpha.com/v1/query.jsp?appid=myid-8RJR4ELL82&input=pi): failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\xampp\htdocs\wolfram\PHP_Binding_0_1\wa_wrapper\WolframAlphaEngine.php on line 47
Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://api.wolframalpha.com/v1/query.jsp?appid=myid-8RJR4ELL82&input=pi" in C:\xampp\htdocs\wolfram\PHP_Binding_0_1\wa_wrapper\WolframAlphaEngine.php on line 47
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\wolfram\PHP_Binding_0_1\wa_wrapper\WolframAlphaEngine.php on line 47
我使用他们预制的 PHP 库并加载
http://localhost/wolfram/PHP_Binding_0_1/samples/simpleRequest.php?q=pi
在我的地址栏中。
谁能帮我解决这个问题?非常感谢!