【问题标题】:Strange error running PHP tester script for aMember为 aMember 运行 PHP 测试器脚本时出现奇怪的错误
【发布时间】:2011-07-24 17:26:51
【问题描述】:

我正在尝试在我的 Windows 7 机器上设置aMember Pro 会员软件。我已经正确安装了 PHP,并且我已经安装了 aMember Pro 试用版所需的 ionCube 加载程序。当我运行 aMember 提供的 Tester.php 脚本以检查 Web 服务器计算机是否具有 aMember 的所有要求时,我在浏览器中重复出现以下错误消息,然后是更清晰的 Failed (enable_dl disabled in php .ini) 错误消息。不过,我对导致“Split()”错误的所有重复的原因非常感兴趣。有什么解释吗?

Warning: split(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for '2.0/no DST' instead in C:\Development\PressMart\aMember\Web\tester.php on line 28 Deprecated: Function split() is deprecated in C:\Development\PressMart\aMember\Web\tester.php on line 28 Warning: eregi(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely 

【问题讨论】:

  • 你能把你使用函数的代码贴出来吗?

标签: php amember


【解决方案1】:

在您的 php.ini 中取消注释或添加说明:

日期.时区 =

所以对于赫尔辛基来说应该是:

date.timezone = "Europe/Helsinki"

确保在保存 php.ini 后重新启动服务器

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-22
    相关资源
    最近更新 更多