The example doesn't work ,because there is an access violation. Only the access from one specific server is allowed. You can see it yourself if you press F12 in your browser(Chrome, FireFox) an look at the console.
You have to use your one sever with php to test the example.