I dont know much when it comes to js/php, I need a system where a client can call a url e.g
website.com/api/?addstring=somestring
and this parameter will be ad