In my plugin module there is a page. On that page i want that when i click a button it executes some function in a php file

Where should i place that php file and how can that function be called on clicking of that button. Pls help.