Re: [PHP] overriding string concatenation '.'

2003-11-13 Thread Burhan Khalid
tirumal b wrote: Hello All I have an ip addr in a variable. I use 'ssh'.$ipaddr.'command' in a php file if $ipaddr = "192.168.1.100" then echo 'ssh'.$ipaddr.'command' will be ssh192.168.1.100command what you probably wanted was 'ssh '.$ipaddr.' command' which would result in ssh 192.168.1.10

Re: [PHP] Overriding string concatenation '.'

2003-11-12 Thread Marek Kilimajer
tirumal b wrote: Hello All This is where i encounter the problem $hostin="122.122.122.122"; $l=system('ssh '.$hostin.' ls'); echo $l; The above one does not work at all but if i hardcode $l=system('ssh 122.122.122.122 ls'); You should post your real code (cut&paste), the above examples are ide

RE: [PHP] Overriding string concatenation '.'

2003-11-12 Thread Jay Blanchard
[snip] This is where i encounter the problem $hostin="122.122.122.122"; $l=system('ssh '.$hostin.' ls'); echo $l; [/snip] Then your code should read $hostin="122.122.122.122"; $l=system("ssh $hostin ls"); echo $l; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] Overriding string concatenation '.'

2003-11-12 Thread tirumal b
Hello All This is where i encounter the problem $hostin="122.122.122.122"; $l=system('ssh '.$hostin.' ls'); echo $l; The above one does not work at all but if i hardcode $l=system('ssh 122.122.122.122 ls'); The ip addr is just an example Thank you Tirumal __

RE: [PHP] overriding string concatenation '.'

2003-11-12 Thread Chris W. Parker
CPT John W. Holmes on Wednesday, November 12, 2003 11:00 AM said: > From the way I read that, the periods _within_ $ipaddr were being > seen as concatination characters (according to OP), which doesn't > make sense. So I wanted an example. Ok, see I thought he was t

RE: [PHP] overriding string concatenation '.'

2003-11-12 Thread Chris W. Parker
Jay Blanchard on Wednesday, November 12, 2003 10:49 AM said: > $ipaddr = "192.34.123.122"; > > . is not a concatenator, it is part of the string. > > $myFileName = "barkLikeAdog.txt"; > > . is not a concatenator, it is part of the string. Oh geez, I know *that*.

Re: [PHP] overriding string concatenation '.'

2003-11-12 Thread CPT John W. Holmes
From: "Chris W. Parker" <[EMAIL PROTECTED]> > > CPT John W. Holmes > > > The dots in ipaddr variable are considered to be > > > string concatenations. > > > > No they are not. Show some examples. > > What am I missing here? How is the dot operator not considered > concate

Re: [PHP] overriding string concatenation '.'

2003-11-12 Thread Chris Shiflett
--- tirumal b <[EMAIL PROTECTED]> wrote: > I have an ip addr in a variable. I use > 'ssh'.$ipaddr.'command' in a php file > > The dots in ipaddr variable are considered to be > string concatenations. That's wrong, which makes me think that you didn't bother trying this before you asked your ques

RE: [PHP] overriding string concatenation '.'

2003-11-12 Thread Jay Blanchard
[snip] > No they are not. Show some examples. What am I missing here? How is the dot operator not considered concatenation? $concatenatedString = 'a'.'concatenated'.'string'; [/snip] $ipaddr = "192.34.123.122"; . is not a concatenator, it is part of the string. $myFileName = "barkLikeAdog.txt"

RE: [PHP] overriding string concatenation '.'

2003-11-12 Thread Chris W. Parker
CPT John W. Holmes on Wednesday, November 12, 2003 10:43 AM said: >> The dots in ipaddr variable are considered to be >> string concatenations. > > No they are not. Show some examples. What am I missing here? How is the dot operator not considered concatenation? $

Re: [PHP] overriding string concatenation '.'

2003-11-12 Thread CPT John W. Holmes
From: "tirumal b" <[EMAIL PROTECTED]> > I have an ip addr in a variable. I use > 'ssh'.$ipaddr.'command' in a php file > > The dots in ipaddr variable are considered to be > string concatenations. No they are not. Show some examples. ---John Holmes... -- PHP General Mailing List (http://ww

[PHP] overriding string concatenation '.'

2003-11-12 Thread tirumal b
Hello All I have an ip addr in a variable. I use 'ssh'.$ipaddr.'command' in a php file The dots in ipaddr variable are considered to be string concatenations. can it take the literal meaning in this case. Please let me know Thank you Tirumal __ Do you Yahoo!? P