Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.