• Hi all

    I have created a basic wordpress site hosted directly from my Raspberry pi and I am using Maxbuttons.

    I simply want to call a php file which is in the host directory from the click of a button. The php file contains a python command.

    The closest I have come is I have triggered the php to execute from the button click by adding a direct url to the file (http://myipaddress/file.php) and this has worked however a blank html page is opened which I dont want.The user must not be redirected away.

    What is the simplest way to call a php file from a button click in wordpress? OR how can I call a url without actually directing away from the page?

    Thanks !!

The topic ‘Execute php file from button click. Raspberry Pi hosted’ is closed to new replies.