Is simple HTTP server binding exists?

Hi. A task is to receive HTTP request from Home Automation Controller.
Requests like that:

http://192.168.0.250/megad.php?pt=6

Answer from server must be “200 OK”
192.168.0.250 - controller IP
megad.php - name of script on server side. Name of this script i can change in controller settings.
pt=6 - mean controller port 6 is activated.

What i need to solve this puzzle?

I can’t say for certain if this will work, but you can put a file in the html filler in your conf folder which will be available at http://host:889/static/namefile.html. You can put JavaScript in that htmp file to parse out the parameters and the OH REST api to update our command items. See my OAUTH tutorial for an example.

But I don’t know if it will work with a php file extension.

There is no binding to do something like this.