<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Kommentare zu: phpa-norl &#8211; PHP shell for Mac OS X and Windows</title>
	<atom:link href="http://www.fischerlaender.net/php/phpa-norl/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fischerlaender.net/php/phpa-norl</link>
	<description>One Blog Is Not Enough</description>
	<lastBuildDate>Sat, 04 Feb 2012 14:39:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Von: error 651</title>
		<link>http://www.fischerlaender.net/php/phpa-norl/comment-page-1#comment-124061</link>
		<dc:creator>error 651</dc:creator>
		<pubDate>Sat, 04 Feb 2012 14:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.fischerlaender.net/php/phpa#comment-124061</guid>
		<description>&lt;strong&gt;error 651...&lt;/strong&gt;

[...]phpa-norl &#8211; PHP shell for Mac OS X and Windows[...]...</description>
		<content:encoded><![CDATA[<p><strong>error 651&#8230;</strong></p>
<p>[...]phpa-norl &#8211; PHP shell for Mac OS X and Windows[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Hosh</title>
		<link>http://www.fischerlaender.net/php/phpa-norl/comment-page-1#comment-105132</link>
		<dc:creator>Hosh</dc:creator>
		<pubDate>Sun, 27 Nov 2011 11:55:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.fischerlaender.net/php/phpa#comment-105132</guid>
		<description>Hi,

So I was using php-norl using php 5.3.5 on Windows 7, and I noticed that the build date wasn&#039;t being read properly with PHP_EOL (strange, this should work), so I replaced the line explode(PHP_EOL, $x); with the following:

        if(preg_match(&quot;/\r\n/s&quot;, $x)) {
            $x = explode(&quot;\r\n&quot;, $x);
        } else if(preg_match(&quot;/\r/s&quot;, $x)) {
            $x = explode(&quot;\r&quot;, $x);
        } else if(preg_match(&quot;/\n/s&quot;, $x)) {
            $x = explode(&quot;\n&quot;, $x);
        }

Simple and easy and works!

Thank you and David for this awesome script! It&#039;s a shame PHP doesn&#039;t support interactive shell properly on Windows.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>So I was using php-norl using php 5.3.5 on Windows 7, and I noticed that the build date wasn&#8217;t being read properly with PHP_EOL (strange, this should work), so I replaced the line explode(PHP_EOL, $x); with the following:</p>
<p>        if(preg_match(&#8220;/\r\n/s&#8221;, $x)) {<br />
            $x = explode(&#8220;\r\n&#8221;, $x);<br />
        } else if(preg_match(&#8220;/\r/s&#8221;, $x)) {<br />
            $x = explode(&#8220;\r&#8221;, $x);<br />
        } else if(preg_match(&#8220;/\n/s&#8221;, $x)) {<br />
            $x = explode(&#8220;\n&#8221;, $x);<br />
        }</p>
<p>Simple and easy and works!</p>
<p>Thank you and David for this awesome script! It&#8217;s a shame PHP doesn&#8217;t support interactive shell properly on Windows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: David Luu</title>
		<link>http://www.fischerlaender.net/php/phpa-norl/comment-page-1#comment-103430</link>
		<dc:creator>David Luu</dc:creator>
		<pubDate>Mon, 21 Nov 2011 06:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.fischerlaender.net/php/phpa#comment-103430</guid>
		<description>First off, great tool and article! Useful for me to do debugging of Selenium RC commands for PHPUnit on Windows. But wanted to mention this feedback: haven&#039;t tried phpa but I&#039;ve used the Python shell and what I miss from that that isn&#039;t here with phpa-norl is exception handling. With Python shell, from what I&#039;ve used of it so far, exceptions are caught and dumped as output in shell and you can proceed with the shell as you please with current variables/objects still in memory. With this phpa-norl, minor issues like some parser errors are dumped to shell and you can continue but fatal exceptions crash the shell and you have to start over with new shell, and existing variables/objects lost. I&#039;d have to do everything over again. :( Be nice if you could find a way to incorporate full exception handling (as an option if not always on) so that we don&#039;t get a shell crash and can continue with our work.</description>
		<content:encoded><![CDATA[<p>First off, great tool and article! Useful for me to do debugging of Selenium RC commands for PHPUnit on Windows. But wanted to mention this feedback: haven&#8217;t tried phpa but I&#8217;ve used the Python shell and what I miss from that that isn&#8217;t here with phpa-norl is exception handling. With Python shell, from what I&#8217;ve used of it so far, exceptions are caught and dumped as output in shell and you can proceed with the shell as you please with current variables/objects still in memory. With this phpa-norl, minor issues like some parser errors are dumped to shell and you can continue but fatal exceptions crash the shell and you have to start over with new shell, and existing variables/objects lost. I&#8217;d have to do everything over again. <img src='http://www.fischerlaender.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Be nice if you could find a way to incorporate full exception handling (as an option if not always on) so that we don&#8217;t get a shell crash and can continue with our work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Stefanos Grammenos</title>
		<link>http://www.fischerlaender.net/php/phpa-norl/comment-page-1#comment-85655</link>
		<dc:creator>Stefanos Grammenos</dc:creator>
		<pubDate>Wed, 17 Aug 2011 03:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.fischerlaender.net/php/phpa#comment-85655</guid>
		<description>I would like you to consider this version of myReadLine that supports 2 types of prompt for multi line editing with comments included. Thanks

    function myReadLine($fh, $prompt, $prompt2=&#039;...  &#039;){
        echo $prompt;
        $complete_line = &#039;&#039;;
        $preg_remove = array(
                            &quot;/([^\&quot;&#039;]*)(&#039;[^&#039;]*&#039;&#124;\&quot;[^\&quot;]*\&quot;)/&quot;,
                            &#039;&#124;//.*?$&#124;m&#039;, 
                            &#039;&#124;#.*?$&#124;m&#039;, 
                            &#039;&#124;/\*.*?\*/&#124;s&#039;,
                      );
        for(;;) {
            $line = fgets($fh,1024);
            if( !$line &amp;&amp; strlen($line)==0 )        # this is true, when CTRL-D is pressed
                die(&quot;\nUser pressed CTRL-D. phpa-norl quits.\n&quot;);
            $complete_line .= $line;
            $cl = str_replace(array(&#039;\\\\&#039;, &#039;\&quot;&#039;, &quot;\&#039;&quot;, &#039;\/&#039;,), &#039;&#039;, $complete_line);
            $cl = preg_replace($preg_remove, &#039;$1&#039;, $cl);
            $chrs = count_chars($cl);
            $chr = &#039;&#039;;
            switch(true){
              case substr_count($cl, &#039;/*&#039;) &gt; 0:
                $chr = &#039;[/*]&#039;; break;
              case $chrs[ord(&quot;&#039;&quot;)] %2 &gt; 0:
                $chr = &quot;[&#039;] &quot;; break;
              case $chrs[ord(&#039;&quot;&#039;)] %2 &gt; 0:
                $chr = &#039;[&quot;] &#039;; break;
              case $chrs[ord(&#039;{&#039;)] - $chrs[ord(&#039;}&#039;)] &gt; 0:
                $chr = &#039;[{] &#039;; break;
              case $chrs[ord(&#039;(&#039;)] - $chrs[ord(&#039;)&#039;)] &gt; 0:
                $chr = &#039;[(] &#039;; break;
              default:
                break 2;
            }
            echo  $chr.$prompt2;
            // echo  $cl . &#039; &#039;;
        }
        return trim($complete_line);
    }</description>
		<content:encoded><![CDATA[<p>I would like you to consider this version of myReadLine that supports 2 types of prompt for multi line editing with comments included. Thanks</p>
<p>    function myReadLine($fh, $prompt, $prompt2=&#8217;&#8230;  &#8216;){<br />
        echo $prompt;<br />
        $complete_line = &#8221;;<br />
        $preg_remove = array(<br />
                            &#8220;/([^\"']*)(&#8216;[^']*&#8217;|\&#8221;[^\"]*\&#8221;)/&#8221;,<br />
                            &#8216;|//.*?$|m&#8217;,<br />
                            &#8216;|#.*?$|m&#8217;,<br />
                            &#8216;|/\*.*?\*/|s&#8217;,<br />
                      );<br />
        for(;;) {<br />
            $line = fgets($fh,1024);<br />
            if( !$line &amp;&amp; strlen($line)==0 )        # this is true, when CTRL-D is pressed<br />
                die(&#8220;\nUser pressed CTRL-D. phpa-norl quits.\n&#8221;);<br />
            $complete_line .= $line;<br />
            $cl = str_replace(array(&#8216;\\\\&#8217;, &#8216;\&#8221;&#8216;, &#8220;\&#8217;&#8221;, &#8216;\/&#8217;,), &#8221;, $complete_line);<br />
            $cl = preg_replace($preg_remove, &#8216;$1&#8242;, $cl);<br />
            $chrs = count_chars($cl);<br />
            $chr = &#8221;;<br />
            switch(true){<br />
              case substr_count($cl, &#8216;/*&#8217;) &gt; 0:<br />
                $chr = &#8216;[/*]&#8216;; break;<br />
              case $chrs[ord("'")] %2 &gt; 0:<br />
                $chr = &#8220;['] &#8220;; break;<br />
              case $chrs[ord('"')] %2 &gt; 0:<br />
                $chr = &#8216;["] &#8216;; break;<br />
              case $chrs[ord('{')] &#8211; $chrs[ord('}')] &gt; 0:<br />
                $chr = &#8216;[{] &#8216;; break;<br />
              case $chrs[ord('(')] &#8211; $chrs[ord(')')] &gt; 0:<br />
                $chr = &#8216;[(] &#8216;; break;<br />
              default:<br />
                break 2;<br />
            }<br />
            echo  $chr.$prompt2;<br />
            // echo  $cl . &#8216; &#8216;;<br />
        }<br />
        return trim($complete_line);<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: karın estetiği</title>
		<link>http://www.fischerlaender.net/php/phpa-norl/comment-page-1#comment-74960</link>
		<dc:creator>karın estetiği</dc:creator>
		<pubDate>Sun, 05 Jun 2011 09:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.fischerlaender.net/php/phpa#comment-74960</guid>
		<description>Awesome script! I don’t know how I programmed php before this…
I have a feature request though. Can we get up/down arrow keys for history? h# is nice but arrow keys are much more convenient for me…</description>
		<content:encoded><![CDATA[<p>Awesome script! I don’t know how I programmed php before this…<br />
I have a feature request though. Can we get up/down arrow keys for history? h# is nice but arrow keys are much more convenient for me…</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Run PHP interactive mode in Mac OS X&#8230; &#171; SysAdmin by chance</title>
		<link>http://www.fischerlaender.net/php/phpa-norl/comment-page-1#comment-72028</link>
		<dc:creator>Run PHP interactive mode in Mac OS X&#8230; &#171; SysAdmin by chance</dc:creator>
		<pubDate>Sun, 15 May 2011 21:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.fischerlaender.net/php/phpa#comment-72028</guid>
		<description>[...] mode without recompiling PHP. The script, phpa-norl (php -a noreadline) is available in his website http://www.fischerlaender.net/php/phpa-norl . Download it now, it would make your life [...]</description>
		<content:encoded><![CDATA[<p>[...] mode without recompiling PHP. The script, phpa-norl (php -a noreadline) is available in his website <a href="http://www.fischerlaender.net/php/phpa-norl" rel="nofollow"></a><a href='http://www.fischerlaender.net/php/phpa-norl'>http://www.fischerlaender.net/php/phpa-norl</a> . Download it now, it would make your life [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Morten</title>
		<link>http://www.fischerlaender.net/php/phpa-norl/comment-page-1#comment-61709</link>
		<dc:creator>Morten</dc:creator>
		<pubDate>Tue, 15 Feb 2011 00:28:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.fischerlaender.net/php/phpa#comment-61709</guid>
		<description>Im sorry, but this is awful on windows 7 php 5.3, returns false to any statement or simply exits the terminal. couldnt even get it to return function test($x){return x+2;} properly, hope you make this work sometime!</description>
		<content:encoded><![CDATA[<p>Im sorry, but this is awful on windows 7 php 5.3, returns false to any statement or simply exits the terminal. couldnt even get it to return function test($x){return x+2;} properly, hope you make this work sometime!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Peter</title>
		<link>http://www.fischerlaender.net/php/phpa-norl/comment-page-1#comment-55643</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 21 Dec 2010 22:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.fischerlaender.net/php/phpa#comment-55643</guid>
		<description>Thank you! Works great on WinXP and php 5.3</description>
		<content:encoded><![CDATA[<p>Thank you! Works great on WinXP and php 5.3</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: &#160; Интерактивный режим PHP или PHP-шелл&#160;[Within: блог samlowry]</title>
		<link>http://www.fischerlaender.net/php/phpa-norl/comment-page-1#comment-54032</link>
		<dc:creator>&#160; Интерактивный режим PHP или PHP-шелл&#160;[Within: блог samlowry]</dc:creator>
		<pubDate>Mon, 06 Dec 2010 04:19:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.fischerlaender.net/php/phpa#comment-54032</guid>
		<description>[...] нашлось: бодрый парень Stefan Fischerländer написал скриптик phpa-norl, который делает всё то же самое, что и &#8216;php -a&#8217;, [...]</description>
		<content:encoded><![CDATA[<p>[...] нашлось: бодрый парень Stefan Fischerländer написал скриптик phpa-norl, который делает всё то же самое, что и &#8216;php -a&#8217;, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: saiwingy</title>
		<link>http://www.fischerlaender.net/php/phpa-norl/comment-page-1#comment-46648</link>
		<dc:creator>saiwingy</dc:creator>
		<pubDate>Wed, 01 Sep 2010 22:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.fischerlaender.net/php/phpa#comment-46648</guid>
		<description>Awesome script! I don&#039;t know how I programmed php before this...

I have a feature request though. Can we get up/down arrow keys for history? h# is nice but arrow keys are much more convenient for me...</description>
		<content:encoded><![CDATA[<p>Awesome script! I don&#8217;t know how I programmed php before this&#8230;</p>
<p>I have a feature request though. Can we get up/down arrow keys for history? h# is nice but arrow keys are much more convenient for me&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

