08.08.2014, 14:10
Hello,
I am making a SA:MP panel with 3 options: Start, Pause and Restart.
The thing is, I made the connection to the linux user successfully, but the starting samp server command is not working, and I don't know why. Here is the code:
I have a 'samp01' folder inside of the user folder so I have to do 'cd'.
However, when I make these commands on Putty it works great.
Any ideas?
By the way, I am using phpseclib.
I am making a SA:MP panel with 3 options: Start, Pause and Restart.
The thing is, I made the connection to the linux user successfully, but the starting samp server command is not working, and I don't know why. Here is the code:
PHP код:
echo $ssh->write('cd samp01\n'); // Changing to 'samp01' directory
echo $ssh->write('./samp03svr &\n'); // Starting the server
However, when I make these commands on Putty it works great.
Any ideas?
By the way, I am using phpseclib.