Dialog for PHP is a collection of wrapper classes written in PHP around the dialog command. There is currently some support for whiptail and xdialog as well. I have committed the source to CVS and created a release for version 1.0. Please try it out and let me know of any problems you have.
A proud member of the SourceForge family. Visit Dialog for PHP's SourceForge page.