I'm currently working on a solution in php which queries an sql database. However, i want other website to be able to query the database (or the functions in php). I search google, but i can't find out how to expose these functions to javascript due to crossdomain policies(i think).
Anyone know how I can do that?