Rob,
What kinds of problems did you have trying to run PHP as a servlet?
Bas,
Are you running Tomcat as your HTTP server or are you using it as a plugin
into a separate HTTP server such as Apache or IIS? If so, where do you want
your PHP processor to run (i.e. on the HTTP server or Java server)? If you want it to run under Tomcat then you'd probably want to use the PHP servlet
SAPI which will also allow you to reference Java objects from your PHP scripts
as well as taking advantage of the JVM and thread pooling that Tomcat gives
you.
If you are using a separate HTTP server and you want PHP to run there then
there are various other SAPI's you can use (e.g. Apache, ISAPI).
Last but not least, you can always run it as a CGI (especially if you use
Tomcat as your HTTP server and you can't get PHP Servlet to work) but
then you're getting the worst of all solutions.
Your JSPs and servlets should run on Tomcat regardless.
Alex