RE: [PHP] Overriding string concatenation '.'
| From: | Jay Blanchard | Date: | Wed, 12 Nov 2003 19:36:50 +0000 |
| Subject: | RE: [PHP] Overriding string concatenation '.' | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-169348@lists.php.net to get a copy of this message | ||
[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;