its possible,
you have to run php as a servlet.
see: ext/java/readme or something in the php distribution.
i havent managed to get this working my self however,
but than again it might work with the new php release (4.2.0)
if you get it to work, please post it here.
good luck.