I am having a LAMP Server on my Raspberry Pi. I have a static page to control my home switches. Also, I have a button which load the following php code.
PHP Code: