note 117888 added to function.ssh2-tunnel

From: Date: Wed, 26 Aug 2015 19:28:55 +0000
Subject: note 117888 added to function.ssh2-tunnel
Groups: php.notes 
Request: Send a blank email to php-notes+get-203481@lists.php.net to get a copy of this message
ssh2_tunnel returns a socket stream (e.g, the output of fsockopen). You can use something basic like this to send a line break and get any output back to test that it's working: fwrite($tunnel, "\n"); while (!feof($tunnel)) { echo fgets($tunnel, 128); } Just a reminder: you can't currently use the socket with any of the cURL functions. ---- Server IP: 72.52.91.14 Probable Submitter: 69.196.72.138 ---- Manual Page -- http://php.net/manual/en/function.ssh2-tunnel.php Edit -- https://master.php.net/note/edit/117888 Del: integrated -- https://master.php.net/note/delete/117888/integrated Del: useless -- https://master.php.net/note/delete/117888/useless Del: bad code -- https://master.php.net/note/delete/117888/bad+code Del: spam -- https://master.php.net/note/delete/117888/spam Del: non-english -- https://master.php.net/note/delete/117888/non-english Del: in docs -- https://master.php.net/note/delete/117888/in+docs Del: other reasons-- https://master.php.net/note/delete/117888 Reject -- https://master.php.net/note/reject/117888 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#203481) next »