Running a script from an other server through php
Posted: Tue Nov 23, 2004 1:18 pm
I have a main server with the main php "portal" script.
On an others server, there is a perl CGI, that I'm not allowed to run on the main server.
Now I'd like to let the main php script run the perl script on that other server. It would receive the POST/GET parameters and would pass them (though a user-agent) to the perl script and also dispay the output to the user.
In the perl script I would just have to change the path to itself, but I don't know how to do the user-agent stuff in php, or if there is a simpler way to this. Anyone got an idea?
On an others server, there is a perl CGI, that I'm not allowed to run on the main server.
Now I'd like to let the main php script run the perl script on that other server. It would receive the POST/GET parameters and would pass them (though a user-agent) to the perl script and also dispay the output to the user.
In the perl script I would just have to change the path to itself, but I don't know how to do the user-agent stuff in php, or if there is a simpler way to this. Anyone got an idea?