note 107859 added to features.commandline.interactive
| From: | lee8oi at gmail dot com | Date: | Sat, 10 Mar 2012 16:06:46 +0000 |
| Subject: | note 107859 added to features.commandline.interactive | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186578@lists.php.net to get a copy of this message | ||
I use git-bash in windows to connect to my servers via SSH. When I use the interactive mode via
'php -a' command I have to hit ctrl+d twice to execute the entered code. Example:
(<ctrl+d> denotes hitting ctrl & D)
-bash$ php -a
Interactive mode enabled
<?php
echo 'hello world';
?><br />
<ctrl+d>
<ctrl+d>
hello world<br />
-bash$
Note: this still displays the <br /> tag but without the tag your output would likely be
attached to your bash prompt like this:
hello world-bash$
----
Server IP: 69.147.83.197
Probable Submitter: 24.231.254.147
----
Manual Page -- http://www.php.net/manual/en/features.commandline.interactive.php
Edit -- https://master.php.net/note/edit/107859
Del: integrated -- https://master.php.net/note/delete/107859/integrated
Del: useless -- https://master.php.net/note/delete/107859/useless
Del: bad code -- https://master.php.net/note/delete/107859/bad+code
Del: spam -- https://master.php.net/note/delete/107859/spam
Del: non-english -- https://master.php.net/note/delete/107859/non-english
Del: in docs -- https://master.php.net/note/delete/107859/in+docs
Del: other reasons-- https://master.php.net/note/delete/107859
Reject -- https://master.php.net/note/reject/107859
Search -- https://master.php.net/manage/user-notes.php