Talking about Php and WordPress.
When you need to execute php code inside a WP post you are in trouble. So was I, when I tried to do it.
But I found a plugin that saved my life, and my blog.
This plugin lets you execute dynamic PHP code in posts. It masks PHP code before balanceTags, and unmask them afterwards, so it should be safe to use PHP code that has literal HTML tags in it, for example: code which print out HTML.
Take a look at the plugin page and enjoy
Never miss an update! Subscribe, and I will bother you by email only when a new game or full source code comes out.