MooSock and sending data via PHP
Ok, I bit the bullet and created a PHP interface on my server following the Online High Score tutorial.
The interface works via the browser, meaning I can pass the data via the browser's address bar and it is stored in my database.
Where it doesn't work, is using MooSock to pass the data. Apparently, MooSock requires a Connection to exist before passing the data.
The connection simply doesn't work and I'm not sure why. Any thoughts??
Thank you!
Re: MooSock and sending data via PHP
After writing the tutorial, I quickly discovered that some servers didn't get on with the way that I'd written the MooSock bit (even Byethost, the one I used to demonstrate, didn't work with it for a while). Can you describe what you get back when you attempt to connect, if anything? (Remember that the http:// should be left out, if that helps at all).
You could also try replacing the MooSock object with the Live Receiver and see if you have more success that way (it's much simpler to use, requiring just an address and a GET/POST string).
Re: MooSock and sending data via PHP
David, thanks!
I'm getting an error 500 when I try to connect. The server name doesn't include folders or any http prefixes.
I will indeed try the Live Receiver, since I know the php works well via the address line in the browser.
Thanks for the tutorial!
Re: MooSock and sending data via PHP
LIVE RECEIVER WORKS JUST FINE! THANK YOU VERY MUCH!