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
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
Share on other sites

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.