I have a PHP script in which I am trying to create a screen on my ssh server with the PHP SSH library phpseclib. This is the function that I am using to try to create the screen:
function startscreen($ssh, $user)
{
$ssh->exec("screen -S ".$user);
}
And this is how I am calling the function:
startscreen($ssh, $user);
I know I can create screens this way, but it will not work remotely with php. Thanks