I can't imagine Joomla! without DirectPHP. It lets me put the code I want where I want! It's absoutely indespensible. It seems that including really long code blocks tends to cause errors, so I typically build a .php file and include it in my article rather than building an entire script in the article. I've used it in conjunction with custom content plugin to make menus appear for select users. I love it!!