Fatal error: Uncaught Error: Call to undefined function readline()
This commit is contained in:
WeCan Group 2017-08-25 20:57:57 +04:30 committed by Daniil Gentili
parent 85d1d506b1
commit 5f737f648f

View File

@ -13,6 +13,19 @@ If not, see <http://www.gnu.org/licenses/>.
set_include_path(get_include_path().':'.realpath(dirname(__FILE__).'/../').':'.realpath(dirname(__FILE__).'/../MadelineProto/'));
chdir(dirname(__FILE__).'/../');
require_once 'vendor/autoload.php';
if(!function_exists("readline")) {
function readline($prompt = null){
if($prompt){
echo $prompt;
}
$fp = fopen("php://stdin","r");
$line = rtrim(fgets($fp, 1024));
return $line;
}
}
if (file_exists('web_data.php')) {
require_once 'web_data.php';
}