Msg#: 4262964 posted 10:52 pm on Feb 4, 2011 (gmt 0)
So I am trying out this tutorial below to get the hang of utilizing the isbndb.com api: [webhole.net ]
Everything came together fine, but when I run a search I get errors from the simplexml_load_file function.
I get first this error: failed to open stream: Connection refused Then this error: I/O warning : failed to load external entity
My server account at Batcave.net is using PHP 5.2.5 so simplexml_load_file should be able to work. Also, when I go to the url directly ("http://isbndb.com/api/books.xml?access_key=O4FQEY32&results=details&index1=isbn&value1=1932073205" for example)in a browser it displays the xml, so it appears that url is correct for connecting to the isbndb.
Any help getting this working would be appreciated. Thanks!
I thought the tutorial I had stumbled on would be a simple way to do that, but I can't understand why these errors are coming up with the simple_xml_file function... Seems like this should be a relatively simple task...
Msg#: 4262964 posted 7:35 pm on Feb 5, 2011 (gmt 0)
I contacted my host provider and they confirmed that you were correct, that they had placed restrictions on making external connections. They were nice enough to enable them for my account and everything is working now! Thanks for your expertise!