how to use openssl_random_pseudo_bytes() in our Yii controller file when i used this is showing error like
Fatal error: Call to undefined function openssl_random_pseudo_bytes()
how to solve this problem plz help
how to use openssl_random_pseudo_bytes() in our Yii controller file when i used this is showing error like
Fatal error: Call to undefined function openssl_random_pseudo_bytes()
how to solve this problem plz help
check if php module is installed/loaded: Reference
Or better yet use
Yii::app()->getSecurityManager()->generateRandomBytes('4')
because it offers alternatives if openssl_random_pseudo_bytes() isn’t enabled in php.ini.
thank u
You’re welcome