Php.ini 导致 Ajax 加载缓慢?
这里有奇怪的错误...从第一天起,ajax 在该服务器上加载速度就很慢...我们认为这是互联网连接的问题,直到昨天。我不小心在 php.ini 文件中添加了一个无效的扩展名(即 extension=php_pdf.dll),然后突然间,ajax 加载速度非常快。当我取出那个无效的扩展名时,ajax 加载速度又变慢了。我和我的大学没有创建 php 配置文件,所以我不确定为什么会发生这种情况...也许 php 配置文件中打开了一个设置,导致 ajax 加载缓慢,并且当这个无效扩展名时包含在内,它会跳过设置...不确定。但希望有人能帮忙解释一下!
如果有人能指出我为什么会发生这种情况的正确方向,我将不胜感激!在解决这个问题之前,我们缓慢的 ajax 加载不会得到解决,并且创建 php.ini 文件的人不再在这里工作。
该网站是: 链接文本
所以如果你点击那里,你会看到有多慢ajax 加载。请帮忙,如果有人想查看启用了哪些设置,我可以包含 php.ini 文件。
预先感谢我收到的任何帮助。
Strange bug here... ajax has been loading slow on this server since day one... we thought it was the internet connection, until yesterday. I accidentally added an invalid extension into the php.ini file (ie. extension=php_pdf.dll), and then all of a sudden, the ajax loaded extremely fast. When I took out that invalid extension, the ajax loaded slow again. My colleges and I did not create the php config file, so I'm not sure why this is happening... maybe there's a setting turned on in the php config file that is causing the ajax to load slow, and when this invalid extension is included, it skips the setting... not sure. But hopefully someone can help explain this!
If anyone can point me in the right direction to why this is happening, I'd appreciate it! Our slow ajax loading won't be fixed until this is sorted out, and the guy who created the php.ini file no longer works here.
The site is: link text
So if you click there, you'll see how slow the ajax loads. Please help, I can include the php.ini file if anybody wants to see what settings are enabled.
Thanks in advance to any help I receive.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您还没有使用 firebug,您可能需要安装它(它是 firefox 的 webdeveloper 插件)。
我刚刚查看了该网站,数据加载速度似乎足够快,但 JS 似乎非常慢。网络选项卡中也暗示有问题,它似乎无法确定 ajax 调用的大小,如果 js 有同样的问题,可能会导致它挂起等待流结束。
看起来像是 php.ini 中的配置错误,但如果没有它的内容,就很难说它是什么。
另外,如果您尝试加载手动加载ajax调用,你会看到页面加载了很长时间,但数据几乎立即显示出来,然后连接并没有立即关闭。
You may want to install firebug if you are not using it already (it's a webdeveloper plugin for firefox).
I just checked out the site and the data seems to be loading fast enough but it seems the JS is just terribly slow. A hint that something is wrong is also in the net tab that doesn't seem to be able to determine the size of your ajax calls, if the js has that same problem it could cause it to hang waiting for the stream to end.
Looks like misconfiguration in the php.ini, but without its content it is hard to say anything about it really.
Also, if you try to load the ajax call manually, you'll see that the page loads for a long time, but the data shows up almost instantly, and then the connection is not closed immediately.
如果您确定对错误 dll 声明的注释与此问题有关,您可以尝试将其移至列表中,直到找出导致问题的其他 dll。
你有没有查看php启动错误?
If you are sure the commenting out of the bad dll declaration is having a bearing on this issue, you could try moving it down the list till you find out which other dll is causing the problem.
Did you look in the php start up errors?