Jump to content

system() issue


solarisuser

Recommended Posts

Hi All,

After a bit of searching, I'm at a loss.

If I run system('dir ssh.exe', $retval); I get the output of dir showing me the ssh.exe file, the size, date, etc along with a retval of 0.

If I run system('ssh.exe -v', $retval); (an example just to see if ssh is going to work before putting in my long syntax), I get no response back and the retval is 1.

I have error_reporting(E_ALL); set on top, but nothing shows up in the error logs. Huh

This is PHP 5.1.4 on a Windows 2K3 box.
Link to comment
https://forums.phpfreaks.com/topic/31642-system-issue/
Share on other sites

[quote author=thorpe link=topic=119688.msg490427#msg490427 date=1166836413]
A bit OT but, any reason your not using php's [url=http://php.net/ssh]ssh[/url] extension?
[/quote]

I tried using php_ssh2.dll from the latest version of PHP (I can't upgrade PHP) but the version mismatch prevented it from loading.
Link to comment
https://forums.phpfreaks.com/topic/31642-system-issue/#findComment-146658
Share on other sites

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.