Are you sure? The scenario is I'm running a php script but I want to switch linix users?
Do I have to use ssh2? I would have to go off the server and come back in just to switch users? Michele > -----Original Message----- > From: talk-boun...@lists.nyphp.org [mailto:talk-boun...@lists.nyphp.org] > On Behalf Of Hans Zaunere > Sent: Thursday, July 30, 2009 2:58 PM > To: 'NYPHP Talk' > Subject: Re: [nyphp-talk] SSH2_CONNECT > > > If I'm on a server already what function can I use to connect as > > another user? > > Seems like a reasonable choice: > > http://us2.php.net/manual/en/function.ssh2-connect.php > > Then you'll probably want: > > http://us2.php.net/manual/en/function.ssh2-auth-password.php > > H > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php _______________________________________________ New York PHP User Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/show_participation.php