Hi
Has anyone got a simple PHP page example that they'd be willing to share please that sends an HttpResponse back to their AppGameKit app?
I have the following which I've taken from a number of forums:
HttpResponse::setCache(true);
HttpResponse::setContentType('text/plain');
HttpResponse::setData("Some data");
HttpResponse::send();
Nothing is returned to my AppGameKit app with the above code and when I refresh the page in the browser I get a "Class 'HttpResponse' not found in..." error. I've seen many posts which suggest this appears because PECL and HttpResponse isn't installed on the server.
I've contacted my host GoDaddy and they say nothing is wrong with my hosting account and that it may be a problem with the above code, and that they don't help with customers scripts. Unfortunately they haven't yet confirmed whether or not PECL and HttpResponse is installed on my hosting package.
It'll be good to see the basic of PHP pages (with all sensitive/private game code removed) which you're using for your AppGameKit app and that works with the AppGameKit HTTP commands so that I can see if it is indeed a problem with my code or the server.
Thanks
the12thplaya