Whenever I try and execute
[php]if (!($stream = ssh2_exec($con, “cd $dir; screen -S creative java -Xmx500M -Xms500M -jar spigot.jar” ))) {[/php]
it keeps returning with ‘Must be connected to a terminal.’ which I can’t seem to get around.
How do I get around/fix this?
Thanks