For the local install (Xamp on a pc in you local network as a webserver) change "www.xxx.com" to f.e. "192.168.x.y) in the example to call the php script.
Works fine (even if I can't give you a complete "how to install and admin Xamp" example). See the (simple) documentations there.