You can easily replace your exec() call with ssh2_exec() To get the output use stream_get_context() however. That's probably the sanest solution here You just need to open a connection to your secondary server beforehand. See ssh2_connect and ssh2_auth_password for that.
And of course you need the ssh2 PHP extension installed and enabled.
You can easily replace your exec() call with ssh2_exec(). To get the output use stream_get_context() however. That's probably the sanest solution here.
You just need to open a connection to your secondary server beforehand. See ssh2_connect and ssh2_auth_password for that. And of course you need the ssh2 PHP extension installed and enabled.
You speak of sanity. =) May I ask you what the "professional way" would be to solve my problem? – Aufwind May 10 at 2:57 I think this is already an acceptable solution security-wise.
If you optimize for speed however, you could make your script on the second server an inetd or nc -l -k service. Just don't forget some /etc/hosts. Allow and .
Deny settings for that. – mario May 10 at 3:02 Thank you. I'll try that tomorrow.
Hopefully it will work this way! – Aufwind May 10 at 3:03.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.