There's some good advice there but even better, a downloadable .zip plugin if you scroll down through the posts which you can install. Then you need to edit the plugin to put in your own PHP and look for whatever hook (in the templates) where you want to execute your PHP. Or, edit a template and put your own hook in if you want to run your PHP somewhere there isn't already a hook.