ochi Posted March 12, 2010 Share Posted March 12, 2010 hello, I'm not sure about how call this post, because I'm not sure about how to solve my problem. I have a ssh connection, and I execute on it mplayer, it's playing a playlist that will never stop. $stream = ssh2_exec($con, 'mplayer rtsp://10.0.10.11/media.sdp') or die("no se ha ejecutado el comando"); stream_set_blocking($stream, true); $output = stream_get_contents($stream,-1); fclose($stream); the problem is that mplayer is sending a response all the time, so it's blocked, and if I dont read the stream, it doesnt execute mplayer. could I read $stream in other port or something similar? Thanks! regards Link to comment https://forums.phpfreaks.com/topic/195028-read-the-response-in-other-port/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.