在 php5 下从 $_SESSION 数据绘制图表/图在 php4 下工作有何效果?

发布于 2024-08-20 16:13:22 字数 336 浏览 3 评论 0原文

我有一个脚本从 $_SESSION 变量生成 3 个图表,这些图表在 php4 下使用 register_globals = off 运行良好,但是当我解析与 php5 相同的脚本时,我没有得到任何图表。

这些图表是从 GD 库中绘制的,如果我将数据设置到脚本文件中的数组(手动填充)中,它就可以工作。但我需要一种方法让它在 php5 上工作,而不需要太多改变。

是否有任何 SESSION 设置或 php 设置可能会干扰我的脚本。我已经检查了很多 php 设置(一遍又一遍地更改 php.ini),但没有发现任何东西可以让我恢复图表。

希望你们中的某个人可以将我踢向正确的方向。有什么想法吗?
多谢。

I have a script generating 3 diagrams from $_SESSION variables which work fine under php4 with register_globals = off, but when I parse the same script as php5 I get no diagram.

The diagrams a drawn from GD libary and it works, if I set the data into an Array (manually filled) within the script file. But I need a way to get it work on php5, without much changes.

Are there any SESSION settings or php-settings which might interfere with my script. I already checked a lot of the php-settings (changing php.ini over and over again), but found nothing what brings me the diagrams back.

Hopefully someone of you could kick me into the right direction. Any Ideas?
Thanks a lot.

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

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

发布评论

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

评论(1

黑凤梨 2024-08-27 16:13:22

我认为您应该首先查看使用版本 4 和版本 5 创建的数组并比较两者。你应该创建一个逻辑数据结构,这样你就可以访问它而不会出现兼容性问题

I think you should first look at the array created with version 4 and version 5 and compare both. And you sould make a logical data structure, so you can access it without compatiblity problems

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