I can see your point, but it seems kind of ridiculous... Anyway, I can't figure it out, but I will give you another way to do it, albeit not the best way. Instead of creating a PHP widget, create a Static HTML widget and use an iframe to display your original PHP file.
Vary the width and height as needed to fit your needs. I did this awhile back, mainly for an Ajax script I wrote that had a couple external file calls, so I didn't think it would work in a PHP widget. Here is my example: http://60degreev6.com/content.php/101-CR-Calc
HTML Code:
<p align="center"><iframe src="LINK TO YOUR FILE HERE" width="620" height="500" frameborder="0"></iframe></p>
Comment