<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 18 May 2013 22:30:41 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Ivo Jansch's Blog: Debugging parameters for CLI apps using Eclipse PDT]]></title>
      <guid>http://www.phpdeveloper.org/news/12447</guid>
      <link>http://www.phpdeveloper.org/news/12447</link>
      <description><![CDATA[<p>
<i>Ivo Jansch</i> has <a href="http://www.jansch.nl/2009/05/03/debugging-parameters-for-cli-apps-using-eclipse-pdt/">a new blog post</a> today looking at a method he's come up with to debug command-line PHP applications in Eclipse PDT with their needed parameters (not as a stand-alone script).
</p>
<blockquote>
I write quite a lot of command line utilities in PHP and luckily PDT makes it easy to debug command line scripts. The thing with command line scripts is that often they require parameters passed on the command line, and PDT offers an easy way to pass them when you debug a script. 
</blockquote>
<p>
He quickly illustrates (<a href="http://www.jansch.nl/wp-content/uploads/2009/05/picture-28.png">with</a> <a href="http://www.jansch.nl/wp-content/uploads/2009/05/picture-30.png">a few</a> <a href="http://www.jansch.nl/wp-content/uploads/2009/05/picture-29.png">screenshots</a>) how to get the debugger to prompt for the values of the PHP script you've selected. You can also use a similar technique in other Eclipse-based IDEs (like Zend Studio or Aptana).
</p>]]></description>
      <pubDate>Mon, 04 May 2009 08:41:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: Interactive CLI password prompt in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12440</guid>
      <link>http://www.phpdeveloper.org/news/12440</link>
      <description><![CDATA[<p>
On the SitePoint PHP blog today <i>Troels Knak-Nielsen</i> has <a href="http://www.sitepoint.com/blogs/2009/05/01/interactive-cli-password-prompt-in-php/">a quick tip</a> for those looking for a way to have their command-line PHP scripts be more interactive.
</p>
<blockquote>
Just a quick tip, since I spent a good hour figuring this out recently. PHP has no native way of doing an interactive password prompt, when running as CLI. You can however use bash for the task.
</blockquote>
<p>
His <a href="http://www.sitepoint.com/blogs/2009/05/01/interactive-cli-password-prompt-in-php/">method</a> (for both Windows and Unix systems) uses <a href="http://php.net/shell_exec">shell_exec</a> command to run a VB Script/bash command that handles the password prompt for the PHP script. The result is then passed back into a variable and returned back to the calling application.
</p>]]></description>
      <pubDate>Fri, 01 May 2009 09:34:38 -0500</pubDate>
    </item>
  </channel>
</rss>
