Fatal error: Call to undefined function random_bytes() in /usr/local/apache/htdocs/login_authenticate.php on line 27 ilgili satırdaki kod $token = bin2hex(random_bytes(32));
php versiyonu 5 diye calıstırmıyor bu kodu nasıl düzenleyebilrim calısması için?
PHP 7 ve sonrasinda eklenmis gorunuyor kullanmak istediginiz function.
PHP 5.2 to 5.6 arasi su paketi kullanabilirsiniz random_bytes icin https://github.com/paragonie/random_compat
Alıntı
Note: Although this function was added to PHP in PHP 7.0, a » userland implementation is available for PHP 5.2 to 5.6, inclusive.