Jump to content

[SOLVED] Executing a remote program help :)


Errant

Recommended Posts

Hi, I checked the rest of the forum and I dont think that this was covered before..

 

Here's  quick spec of what I want help with, it involves a game server a remote database server (running PHP 4 and Mysql latest). The problem is - we have a coded plugin for the game server to run a PHP script on the remote server and save some data to the mysql. What  I then need to do is send the data back by running a program with a command string on the game server via the PHP. If that nmakes sense.

 

I know you can use exec() locally but unfortunately the data server and game server have to be seperate (or rather we cant get them together :(). SO is there a way to execute programs on a remote machine via PHP?

 

I wondered if fsockopen would work but i don't think it would right?

 

Is this even possible?

Link to comment
https://forums.phpfreaks.com/topic/45265-solved-executing-a-remote-program-help/
Share on other sites

SO is there a way to execute programs on a remote machine via PHP?

 

If you have control over both servers its easy enough to just write a php script on the remote server which will execute your program. Then all you need do is make a http request for said script.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.