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.100

[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!?

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

RE: [PHP] overriding string concatenation '.'

2003-11-12 Thread Chris W. Parker
CPT John W. Holmes mailto:[EMAIL PROTECTED] 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 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 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 question.

Re: [PHP] overriding string concatenation '.'

2003-11-12 Thread CPT John W. Holmes
From: Chris W. Parker [EMAIL PROTECTED] CPT John W. Holmes mailto:[EMAIL PROTECTED] 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 Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] 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*. I read the

RE: [PHP] overriding string concatenation '.'

2003-11-12 Thread Chris W. Parker
CPT John W. Holmes mailto:[EMAIL PROTECTED] 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

[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 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:

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 (cutpaste), the above examples are