note 51632 added to features.commandline
| From: | chris at maedata dot com | Date: | Wed, 06 Apr 2005 05:25:16 +0000 |
| Subject: | note 51632 added to features.commandline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87555@lists.php.net to get a copy of this message | ||
To execute a block statement in Interactive Mode under Windows (XP) type CTRL-Z and Enter.
Ex:
--------------------
C:\>php -a
Interactive mode enabled
<?
$myArr = range('a','z');
print_r($myArr);
^Z
Content-type: text/html; charset=iso-8859-1
X-Powered-By: PHP/4.3.2
Array
(
[0] => a
[1] => b
[2] => c
[3] => d
[4] => e
[5] => f
[6] => g
[7] => h
[8] => i
[9] => j
[10] => k
[11] => l
[12] => m
[13] => n
[14] => o
[15] => p
[16] => q
[17] => r
[18] => s
[19] => t
[20] => u
[21] => v
[22] => w
[23] => x
[24] => y
[25] => z
)
C:\>
--------------------
The CTRL-D method as mentioned previously does not seem to have any effect.
----
Manual Page -- http://www.php.net/manual/en/features.commandline.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51632
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51632&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51632&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51632&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51632&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51632&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51632&report=yes
Search -- http://master.php.net/manage/user-notes.php