If you create a "PHP Direct Execution" CMS widget, then you need all the output to be assigned to $output. So if you have php code that uses echo (or other "print" functions) to send output, or uses ?>...<?php tags to include html, then you either need to rewrite the code to assign the output to the $output variable (such as ForumsMods did above), or else use ob_start()/ob_get_contents()/ob_end_clean() to capture the output to a string.
|