duanaoreng9355 2016-04-08 13:34
浏览 14
已采纳

password_verify不在PHP的子域中工作

I have password_verify working fine on my main site. However, on my subdomain, the exact same code is causing the following error:

The subdomain.example.com page isn’t working

subdomain.example.com is currently unable to handle this request.

This is my code for verifying the password, password_verify($password, $hash).

  • 写回答

1条回答 默认 最新

  • dousi1906 2016-04-08 13:40
    关注

    password_verify was only introduced with PHP 5.5 - if your subdomain site is running on a lower version than that, you'll need to use a forwards-compatibility library such as https://github.com/ircmaxell/password_compat

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?