Static Page eXtended -- this plugin allows you to include stand alone php pages in the place of a static page. You may write all the php you want in the stand alone file.

Jixor.com - WordPress Plugins » Static Page eXtended