<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>lighty's life: A interactive PHP-Shell</title>
    <link>http://blog.lighttpd.net/articles/2006/05/15/a-interactive-php-shell</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>A interactive PHP-Shell</title>
      <description>&lt;p&gt;I was always jealous of iruby and ipython, the interactive shells for Ruby and Python. Instead of writing a script and running it through the interpreters you just execute the script line-by-line while you write it.&lt;/p&gt;


	&lt;p&gt;For debugging this is great. Compare a shell-script against the normal shell usage. It is more a &amp;#8216;What if I &amp;#8230;&amp;#8217; pattern instead of &amp;#8216;I can write 100 lines of code without testing it&amp;#8217;.&lt;/p&gt;


	&lt;p&gt;&lt;span class="caps"&gt;PHP&lt;/span&gt; was missing a powerful shell for a long time now. I needed one for my team at work and &amp;#8216;php -a&amp;#8217;, the interactive shell of &lt;span class="caps"&gt;PHP 5&lt;/span&gt;.0.x, is still not able to handle basic &lt;span class="caps"&gt;FATAL&lt;/span&gt; errors like &amp;#8216;Function foo() not found&amp;#8217;. So I wrote a php based &lt;a href="http://jan.kneschke.de/projects/php-shell/"&gt;interactive php-shell&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The installation is simple:&lt;/p&gt;


&lt;pre&gt;
$ pear install http://jan.kneschke.de/projects/php-shell/PHP_Shell-0.2.1.tgz
&lt;/pre&gt;

	&lt;p&gt;The installation process will install shell wrappers for Unix and Windows:&lt;/p&gt;


&lt;pre&gt;
unix&amp;gt; php-shell.sh
win&amp;gt; php-shell.bat
&lt;/pre&gt;

	&lt;p&gt;It will open your prompt, there you go.&lt;/p&gt;


	&lt;p&gt;If you are seeking for help, go to &lt;a href="http://forum.lighttpd.net/forum/3/"&gt;http://forum.lighttpd.net/forum/3/&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 15 May 2006 08:32:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:b7ac4d6a-d749-4b1d-85a0-8ce54eb9c5fa</guid>
      <author>jan</author>
      <link>http://blog.lighttpd.net/articles/2006/05/15/a-interactive-php-shell</link>
      <category>php</category>
      <category>shell</category>
      <trackback:ping>http://blog.lighttpd.net/articles/trackback/490</trackback:ping>
    </item>
  </channel>
</rss>
