• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 410
  • Last Modified:

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.
0
kvaade
Asked:
kvaade
  • 2
1 Solution
 
edster9999Commented:
you can include php code off a different server using something like :

include 'http://www.otherserver.com/page.php?data=1&next=2';

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
http://quercus.caucho.com/
0
 
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...
0
 
edster9999Commented:
include it as iframe then.... otherwise they DO have access as the php file is included from the main one.
0
 
RowleyCommented:
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/
</Location>

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

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now