I'm having another problem with the quotes in PHP, I have two sets of nested quotes inside a normal set and this is what I thought should work
if (!($stream = ssh2_exec($con, 'screen -p 0 -S new3 -X eval \"stuff \"stop\"\015\"'))) {
This is how it is in just a simple bash script:
screen -p 0 -S minecraft -X eval 'stuff \"stop\"\015'
So I need help getting it from bash to working in PHP, thanks!