Is it possible to use a php page output within a widget?

I have an idea for a widget (personal use) which would essentially use PHP to dynamically build a string of text.

My hope is to call the dynamic URL from the widget and then return the PHP page result to the widget for display. 

I'm still playing with the idea but don't want to spend too many hours if its not at all possible

work in progress of the PHP page output can be seen here

glance view info would be here http://0-21.co.uk/tide2.php

then the next page http://0-21.co.uk/tide.php would be used to populate the full widget view 

hope this makes sense?

I need all the help I can get !