Run php on different server

My Server runs Caucho Resin with jsp code. I also want to use PHP in my code, but I want PHP to be run on another server of mine, but included on my first server.

Can I do this? I don't want to use iframe.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you can include php code off a different server using something like :

include '';

But that would still have to be inside a php page so you would also have to have php on the main server to run that.

What about
kvaadeAuthor Commented:
Server1 with caucho resin is my server.

A "customer" wants to run php on Server1.

I don't want:
1) to give customer access to Server1, no chroot jail, no access.
2) php from customer to potentially disturb Server1

I can give customer access to Server2 with php installed, but presentation should be on Server1...
include it as iframe then.... otherwise they DO have access as the php file is included from the main one.
What about configuring your apache/mod_caucho box to reverse proxy url's back to the php server?

<Location /some/url>
ProxyPass              http://phphost/url/
ProxyPassReverse    http://phphost/url/

We use this setup for passing particular servlet url's off to third parties...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.