CROS Domain Requests in PHP

Github allows us to save our files, and every one knows. But, through their Github Pages they even host a repo with and thats how i have hosted for free.
But, it is only for static pages. How can you make them dynamic??
Simple, host your server side scripts ( I used PHP, of course ) in free hosting websites and fetch the data through CROSS Domain Requests.
But, servers won't responds to any other request from other domains. To make them respond, in PHP you've to just add a code of line that tells to respond.
header('Access-Control-Allow-Origin: *');

And, thats it.
Happy coding