php-general Digest 4 Jul 2012 08:36:23 -0000 Issue 7877
Topics (messages 318390 through 318391):
Re: exec to launch putty.exe for telnet
318390 by: Matijn Woudt
Is this list less busy than it used to be?
318391 by: RGraph.net support
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
On Tue, Jul 3, 2012 at 8:24 PM, Devang Patel <devan...@gmail.com> wrote:
> Hello Experts,
>
> I have putty.exe on my desktop so if I will go to command prompt and then
> to C:\Documents and Settings\user\Desktop location and execute following
> command it will launch the Putty window of telnet connection to server
> specified:
>
> putty.exe telnet://10.3.215.15/
>
>
>
> I am trying to launch the putty to telnet to specific server using
> following but its not working for me:
>
> <?php
> $securecrt = "C:\\Documents and Settings\\user\\Desktop\\putty.exe telnet://
> 10.3.215.15/ ";
>
>
> exec($securecrt);
> ?>
>
> If I try following then it launches the putty application but will have to
> provide the host name or IP to login:
>
> <?php
> $securecrt = "C:\\Documents and Settings\\user\\Desktop\\putty.exe ";
>
>
> exec($securecrt);
> ?>
>
> Not sure if I am missing something very basic, It will be great if someone
> can help with this.
>
> Thanks,
> Devang
Hi Devang,
What version of PHP are you using? It seems there is a bug with PHP
version 5.2 and lower on windows which requires you to add extra
quotes to the input, though, doing so will result in errors on PHP
version 5.3 and up.
Also, are you getting any specific errors? Maybe you can explain a
little more detailed of what isn't working exactly?
- Matijn
--- End Message ---
--- Begin Message ---
Hi,
Is this list less busy than it used to be? Or is it just me? When I
used to be on this list ISTR sometimes being overwhelmed by email.
Cheers
--
Richard, RGraph.net support
RGraph: JavaScript charts for your website
http://www.rgraph.net
--- End Message ---