doujianglin6704 2011-05-22 07:13
浏览 20
已采纳

PHP SQL服务器查询问题

Im using php with mssql function (Xampp). Im trying to do a so-called progress bar for my user to see the process running behind. So, from a form, i send it to two php pages. one is the processing page and another one is the progress bar (popup window) page.

The processing page work fine, insert, update the database. but the problem is another page, which is the progress bar page keep on hang after refresh.

If i run both page using different browser (firefox and chrome), the progress bar working fine, but if both running in the same browser (eg: im using firefox4), the progress bar script will halt and error of 'Maximum execution time of 60 seconds exceeded' appear

fyi, both page use the same database and same table..

many2 thanks in advance....

  • 写回答

1条回答 默认 最新

  • dongzheng4556 2011-05-22 07:23
    关注

    PHP sessions are known to block other pages accessing the same session concurrently.

    Have a look at session_write_close

    but as session data is locked to prevent concurrent writes only one script may operate on a session at any time.

    This would explain why accessing the progress bar using a different browser works.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?