have you got the cgi php binary on your server?
you can check this by creating a "hello world" php file and then trying
php hello_world.php3
at the command line. if it works it should echo as normal, if it fails you'll get "command not found" or somesuch
if it works then you can just go
php myscript.php3 | lpr
or whatever you normally do to print. the output of php should be plain ascii anyway, as anything else is subject to dodgy browser support.
--
rad