我正在将DropBox集成到我的基于
PHP的网站中.当我尝试运行以下代码时.我得到了这个致命错误:在最后一行调用未定义的函数readline().
require_once "dropBox-sdk/DropBox/autoload.PHP"; use \DropBox as dbx; $appInfo = dbx\AppInfo::loadFromJsonFile("app-info.json"); echo "<pre>"; print_r($appInfo); echo "</pre>"; $webAuth = new dbx\WebAuthNoRedirect($appInfo,"PHP-Example/1.0"); echo "<pre>"; print_r($webAuth); echo "</pre>"; $authorizeUrl = $webAuth->start(); echo "1. Go to: " . $authorizeUrl . "\n<br>"; echo "2. Click \"Allow\" (you might have to log in first).\n<br>"; echo "3. Copy the authorization code.\n<br>"; $authCode = \trim(\readline("Enter the authorization code here: "));
我来过不同的论坛,人们说它会在命令行中工作,但我不明白怎么办?任何的想法 ?
@H_403_5@