title: Call to undefined function readline()?
body: <p>I am integrating Dropbox into my PHP based website. When i try to run the following code. i got this <strong>Fatal error: Call to undefined function readline()</strong> on the last line.</p>
  
  <pre><code>require_once "dropbox-sdk/Dropbox/autoload.php";
  use \Dropbox as dbx;
  $appInfo = dbx\AppInfo::loadFromJsonFile("app-info.json");
  
  echo "&lt;pre&gt;";
  print_r($appInfo);
  echo "&lt;/pre&gt;";
  
  $webAuth = new dbx\WebAuthNoRedirect($appInfo, "PHP-Example/1.0");
  
  echo "&lt;pre&gt;";
  print_r($webAuth);
  echo "&lt;/pre&gt;";
  
  $authorizeUrl = $webAuth-&gt;start();
  echo "1. Go to: " . $authorizeUrl . "\n&lt;br&gt;";
  echo "2. Click \"Allow\" (you might have to log in first).\n&lt;br&gt;";
  echo "3. Copy the authorization code.\n&lt;br&gt;";
  $authCode = \trim(\readline("Enter the authorization code here: "));
  </code></pre>
  
  <p>I have come through different forum where people said it will work in Command line , But I don't understand how? Any idea ?</p>