Title: Execute php file from button click. Raspberry Pi hosted
Last modified: August 31, 2016

---

# Execute php file from button click. Raspberry Pi hosted

 *  [willshill](https://wordpress.org/support/users/willshill/)
 * (@willshill)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/execute-php-file-from-button-click/)
 * 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](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.

 * 0 replies
 * 1 participant
 * Last reply from: [willshill](https://wordpress.org/support/users/willshill/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/execute-php-file-from-button-click/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
