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

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

报告相同问题?

悬赏问题

  • ¥88 实在没有想法,需要个思路
  • ¥15 MATLAB报错输入参数太多
  • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败