I have added a new app configured so it is pointing on to my web site (where I have installed the php source code you provided us with). But It doesn't seem to work: I get connection timeout errors.
Ahh the example script. That was not meant for ingame use, but I fixed it so it can be used ingame aswell.
* xml char/guild node now has 'created' attribute.
* xml link is hidden from ingame view and moved to bottom-right corner
* apikey can be copied ingame