PHP 简单 HTML Dom 和 PHP记忆

发布于 2024-10-13 02:50:16 字数 300 浏览 5 评论 0原文

PHP 简单 HTML Dom 问题 您好,我有大约 40 个网址,我在循环中循环访问它们,我有以下

    $html->clear();
    unset($html);
    $html =  file_get_html($value);

7 或 8 个循环后,它似乎停止工作。我认为这是一个内存问题,但我无法判断。 有没有人遇到相同或类似的问题。 我正在使用 Zend studio 并在循环中设置了一个断点。它在前 7 或 8 个中被击中,但随后什么也没有发生。

非常感谢任何帮助,

PHP Simple HTML Dom problem
Hi I have about 40 urls which I looping through within the loop I have the following

    $html->clear();
    unset($html);
    $html =  file_get_html($value);

After 7 or 8 loops it appears to stop working. I'm thinking this is a memory issue but I can not tell.
Has anyone had the same or similar problem.
I am using Zend studio and have set a break point in the loop. it is hit for the first 7 or 8 but then nothing happens.

Any help much appreciated,

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文