I run exec.php and am able to add php to pages without any problem. have never tried posts but can't imagine it would be different.
That's what I've used and works fine within posts. I believe it's another situation in which you want to turn off the Visual Rich Editor. http://bluesome.net/post/2005/08/18/50/