Yep, it's quite possible. Just surround the php code with a open and close php tag:

<?

// insert php code here

?>

-------------------
Rick Baker
UBBThreads developer