为会员运行 PHP 测试脚本时出现奇怪的错误

发布于 2024-10-27 02:16:40 字数 1140 浏览 6 评论 0原文

我正在尝试在我的 Windows 7 计算机上设置 aMember Pro 会员软件。我已经正确安装了 PHP,并且安装了 aMember Pro 试用版所需的 ionCube 加载程序。当我运行 aMember 提供的 Tester.php 脚本来检查 Web 服务器计算机是否满足 aMember 的所有要求时,我在浏览器中多次重复出现以下错误消息,然后是更清晰的 Failed (enable_dl在 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 

I'm trying to set up the aMember Pro membership software on my Windows 7 machine. I have properly installed PHP, and I have installed the ionCube loader, required for the trial version of aMember Pro. When I run the Tester.php script provided by aMember, to check if the web server machine has all the requirements for aMember, I get several repeats of the following error message in my browser, followed by a clearer, Failed (enable_dl disabled in php.ini) error message. I'm very intrigued by what causes all the repeats of the "Split()" error though. Any explanations?

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 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尹雨沫 2024-11-03 02:16:40

在 php.ini 中取消注释或添加以下行:

日期.时区=

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

date.timezone = "Europe/Helsinki"

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

In your php.ini uncomment or add the line stating:

date.timezone =

So for Helsinki it would be:

date.timezone = "Europe/Helsinki"

Make sure you restart your server after saving the php.ini

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文