Search code examples
phpfunctionpasswordsversionpassword-hash

Fatal error: Call to undefined function password_verify() (with godaddy)


I am having this error after I uploaded into the web server and realized that it might be the php version godaddy provides since I heard lots of these problems before.

Also, I ready the other post having this problem saying password_verify is a built in function as php5.5 and godaddy only provides up php5.2, 5.3 and 5.4

I am wondering if using php5.4 what can I do with the password_verify? Also, I am also using password_hash which is giving me errors too but I need to do both hash and verify through the database.


Solution

  • I found this library that someone created which appears to be exactly that (PHP 5.5 password functions for lower PHP versions)

    https://github.com/Antnee/phpPasswordHashingLib