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
you could build a rpc server (remote-procedure-call). It could be either xml-rpc or json-rpc. Here are some good documentations