How do I add a php tool to my blog?

I have a tool (like a colour picker) that is written in PHP. I want to pull it into the blog environment and I think I do this using a "PAGE" - but I am not sure exactly what the steps are. Do I upload the php file into the templates folder and then call the template from the PAGE?

Thansk for your help.