<?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>Wed, 19 Jun 2013 07:22:38 -0500</pubDate>
    <ttl>30</ttl>
    <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>
