note 96242 deleted from function.ssh2-exec by danbrown

From: Date: Wed, 17 Feb 2010 14:52:56 +0000
Subject: note 96242 deleted from function.ssh2-exec by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166068@lists.php.net to get a copy of this message
Note Submitter: jschwepp at gmail dot com ---- tabber dot watts at gmail dot com wrote: ->02-Dec-2005 11:21 ->This is the best way I found to automatically run multiple commands or commands that might take longer then expected. NOTE: this assumes that no where in the output is there the text '[end]' otherwise the function will end prematurely. Hope this helps people. -> -><?php ->$ip = 'ip_address'; ->$user = 'username'; ->$pass = 'password'; -> ->$connection = ssh2_connection($ip); This was a great help; however, $connection = ssh2_connection($ip); should read $connection = ssh2_connect($ip); Everything worked fine with this change.

« previous php.notes (#166068) next »