[PHP] Getting the CTRL T value

2003-12-17 Thread Terence
Hi all,

Can someone point me in the direction of getting the CTRL T value (^T) into
a string?
I need it for a line break on a system call, net send.
Something along the lines of
net send computer_name line 1 ^T line 2 ^T line 3.
From what I've seen the Dec# is 20 and the Hex# is 14, but I have no idea
how to get it
into the ^T.

Thanks!
Terence

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Getting the CTRL T value

2003-12-17 Thread Jason Wong
On Wednesday 17 December 2003 16:06, Terence wrote:

 Can someone point me in the direction of getting the CTRL T value (^T) into
 a string?
 I need it for a line break on a system call, net send.
 Something along the lines of
 net send computer_name line 1 ^T line 2 ^T line 3.
 From what I've seen the Dec# is 20 and the Hex# is 14, but I have no idea
 how to get it
 into the ^T.

echo A tab between this\tand this;

manual  Types  Strings

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
I'd love to go out with you, but I'm taking punk totem pole carving.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Getting the CTRL T value

2003-12-17 Thread Terence

No, that's to add a tab, I am looking for CTRL (control) + T

Thanks anyway,
Terence

- Original Message - 
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 4:14 PM
Subject: Re: [PHP] Getting the CTRL T value


On Wednesday 17 December 2003 16:06, Terence wrote:

 Can someone point me in the direction of getting the CTRL T value (^T)
into
 a string?
 I need it for a line break on a system call, net send.
 Something along the lines of
 net send computer_name line 1 ^T line 2 ^T line 3.
 From what I've seen the Dec# is 20 and the Hex# is 14, but I have no idea
 how to get it
 into the ^T.

echo A tab between this\tand this;

manual  Types  Strings

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
I'd love to go out with you, but I'm taking punk totem pole carving.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Getting the CTRL T value

2003-12-17 Thread Jason Wong
On Wednesday 17 December 2003 16:23, Terence wrote:
 No, that's to add a tab, I am looking for CTRL (control) + T

Sorry, misunderstood the question.

Try this:

  $CTRLTAB = chr(20); // assumming that's the code CTRL-T
  echo net send computer_name line 1 {$CTRLTAB} line 2 {$CTRLTAB} line 3;

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
I suppose that in a few hours I will sober up. That's such a sad
thought. I think I'll have a few more drinks to prepare myself.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php