To enable extensions, verify that they are enabled in your .ini files:
Alternatively, you can run Composer with `--ignore-platform-req=ext-fileinfo` to temporarily ignore these required extensions.
function textlog($connect, $chat_id, $text, $user_id) {
if (!$chat_id) {
return false;
}
$sql = "INSERT INTO textlog (chat_id, phone, user_id) VALUES (?,?,?)";
$stmt = $connect->prepare($sql);
$stmt->bind_param("sss",$chat_id, $text, $user_id);
$stmt->execute();
return true;
}