Re: [PHP-DEV] idea: add wrapper support to mysqli_connect

2013-03-14 Thread Andrey Hristov
Hi, On 03/13/2013 10:09 PM, Thomas Anderson wrote: On Wed, Mar 13, 2013 at 3:37 PM, Rasmus Lerdorf wrote: On 03/13/2013 12:08 PM, Thomas Anderson wrote: Instead of passing localhost to mysqli_connect as the $host parameter I think it'd be useful if you could pass something like ssh2.tunnel://

Re: [PHP-DEV] idea: add wrapper support to mysqli_connect

2013-03-13 Thread Thomas Anderson
On Wed, Mar 13, 2013 at 3:37 PM, Rasmus Lerdorf wrote: > On 03/13/2013 12:08 PM, Thomas Anderson wrote: >> Instead of passing localhost to mysqli_connect as the $host parameter >> I think it'd be useful if you could pass something like >> ssh2.tunnel://user:p...@example.com:22/192.168.0.1:14 to it

Re: [PHP-DEV] idea: add wrapper support to mysqli_connect

2013-03-13 Thread Rasmus Lerdorf
On 03/13/2013 12:08 PM, Thomas Anderson wrote: > Instead of passing localhost to mysqli_connect as the $host parameter > I think it'd be useful if you could pass something like > ssh2.tunnel://user:p...@example.com:22/192.168.0.1:14 to it as well. > > The main advantage I see of doing that is that

[PHP-DEV] idea: add wrapper support to mysqli_connect

2013-03-13 Thread Thomas Anderson
Instead of passing localhost to mysqli_connect as the $host parameter I think it'd be useful if you could pass something like ssh2.tunnel://user:p...@example.com:22/192.168.0.1:14 to it as well. The main advantage I see of doing that is that you could tunnel through SSH2, through SOCKS, through HT