title: Can anyone explain the $pty argument in ssh2_exec() function call
body: <p>I've been using ssh2_exec for a while now to build an admin panel and deployment system for our workplace and so far was very successful up to when i tried to use it on another server than the local server.</p>
  
  <p>I keep getting "stdin: is not a tty" and i have been looking all over the web to get this message to go. I understand that the issue is that ssh2_exec is not an interractive terminal per se and something on the server i'm connecting to is probably trying to check for an input method of some sort... At least thats what i seem to understand.</p>
  
  <p>I've scoured google for 1h30 trying to find posts relative to php's ssh2 implementation which works fine for my usage for now but was never able to find out how to fix this although i think i might have an idea.</p>
  
  <p>There is a $pty argument(3rd) to ssh2_exec() but the docs do not tell us what it seems to do. Is anyone familliar with it and knows how to use this parameter and if it might actually fix the problem i might have?</p>