Hi, I am working on an AIML chatterbot using "Program E" (http://sourceforge.net/project/showfiles.php?group_id=43190_
), I got it all set up and am able to talk to it via the talk.php page but run into a problem trying to communicate with it via XMLRPC. I did the same thing successfully with a bot made at www.pandorabots.com
, using "http://www.pandorabots.com/pandora/talk-xml?
but wanted to host it on my own new site since pandorabots.com can get very slow and even unresponsive at times.
So... I know very little about coding, PHP and XMLRPC, ect, but am competent enough to have gotten this far. ;)
Program E has :
then a subdir named "xmlrpc" which contains
I'm not sure what exactly "http://www.pandorabots.com/pandora/talk-xml
" is (IE what type of file it is exactly), but I do know I was able to make it work with that path on the pandorabots site.
So to get it to work with my domain I restructured my http request to either of these php files like this :
with no luck. I thought "maybe I need to run the server part first" and just opened "http://www.mydomain.com/programe/xmlrpcserver.php
" in a webbrowser, and got this error:
Parse error: parse error, unexpected T_BOOLEAN_AND in /home/content/(my domain info)html/programe/xmlrpcs
erver.php on line 70
And opening "http://www.mydomain.com/programe/xmlrpc/phpclient.php
" in a web browser returns a blank page showing "Say something to Program E" with a text field, but then I type my text into the text field and submit and I get this error message :
Fatal error: Call to a member function on a non-object in /home/content/(my domain info)/html/programe/xmlrpc
.php on line 47
finally there is a "sampleperlclient.pl" in the xmlrpc subdir, but trying anything with that just gives me an internal server error message.
I am using Godaddy.com hosting. Once again, I know very little about php and all forms of web coding, and may have phrased things wrong or misunderstanding many things here(entirely self-taught), but was able to get my project working when sending an html request to "http://www.pandorabots.com/pandora/talk-xml?
, was able to get program E installed and working on my website... but just can't figure out how to plug my project into Program E via its XMLRPC interface.
Edit : Ug, after doing a little more research, I am using Linux hosting, do I need Windows hosting for XML-RPC to work? Alternately I could try going through "www.mydomain.com/programe/talk.php
but when I tried structuring it like "www.mydomain.com/programe/talk.php?input=text&myid=99999&botname=TestBot
" it didn't seem to post the data and just loads the talk.php chat interface... When I was first developing this using pandorabots.com as the backend I couldn't find the right way to form the request to send data to "http://www.pandorabots.com/pandora/talk?
" but was able to make it work once I found out about "http://www.pandorabots.com/pandora/talk-xml?