赞普。 PHP脚本显示空白页!

发布于 2024-08-19 05:30:10 字数 345 浏览 4 评论 0原文

php 脚本调用四个函数来抓取不同网站的数据。

$returnData[0]=getWebsite1Data($description);
$returnData[1]=getWebsite2Data($description);
$returnData[2]=getWebsite3Data($description);
$returnData[3]=getWebsite4Data($description);

如果我禁用对任何一个随机函数的调用,该脚本将正确显示网页。

这让我认为这是一个资源问题。如果是资源问题,我该如何在 Xampp 中纠正它。我尝试过取消设置变量,但这也不起作用。

The php script is calling four functions that scrape different websites for data.

$returnData[0]=getWebsite1Data($description);
$returnData[1]=getWebsite2Data($description);
$returnData[2]=getWebsite3Data($description);
$returnData[3]=getWebsite4Data($description);

The script displays the web-page correctly if I disable the call to any one random function.

That makes me think its a resource problem. If it is a resource problem how do I correct it in Xampp. I've tried unsetting the variables but that didn't work either.

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

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

发布评论

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

评论(2

欢你一世 2024-08-26 05:30:10

确保 php.ini 中的错误报告设置足够高

Make sure Error Reporting is set high enough in php.ini

浮生未歇 2024-08-26 05:30:10

检查你的 phpinfo 并查看你的“内存限制”是多少。尝试在 php.ini 中将其加倍。

Check your phpinfo and see what your "memory_limit" is. Try doubling it in your php.ini.

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