Flash 和 php 变得非常慢,相同的代码

发布于 2024-08-08 20:00:01 字数 255 浏览 5 评论 0原文

我做了一个 Flash 应用程序,它在 Flash 中有一个登录表单,并在 php 中进行身份验证。那是3个月前的事了,发送请求和响应都非常快——也就是说,当我点击提交按钮时,3-5秒之内就会有来自php的响应。

最近,我在 flash 中进行了另一次登录,使用了与之前类似的代码。现在,发送请求和响应都很长,每次服务器可能需要长达10秒的时间来响应。为什么花了这么长时间而上一个却很快?

相同的主机,相同的 php 文件,类似的 swf(swf 没有太大变化)。

I did a flash application that has a login form in flash, and authenticates in php. That was 3 months ago, and the sending requests and response is very fast -- that is, when i click submit button, within 3 - 5 seconds it will have a response from php.

Recently, I did another login in flash, using similar code as I previously have done. Now, the sending request and respond is very long, each time the server may take up to 10 seconds to respond. Why is it taking so long yet the previous one is fast?

Same host, same php files, similar swf (not much changes in swf).

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

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

发布评论

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

评论(1

请别遗忘我 2024-08-15 20:00:01

使用 Firebug 之类的东西告诉您实际的请求/响应时间,看看延迟是服务器端还是客户端。

Use something like Firebug to tell you actual request/response time to see if delay is server side or client.

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