这个贴子是
http://topic.csdn.net/u/20110517/13/8776eb52-672a-45ac-946e-7aa7a3c7e33b.html
的继续。现在这个问题似乎还是没有解决我重新编写了index.php,现在index.php不再调用数据库,甚至都包含操作mysql的类文件。
a.php也不调用数据库,它只执行采集的任务。
a.php与index.php是两个独立文件,它们共同包含了另外两个文件(这两个文件中并不执行任务,只是函数),现在的情况是在执行a.php进行采集时,index.php却打不开,等a.php采集完成后index.php才能正常打开。请问这是哪儿出现了问题?
同时,我观察了在执行a.php进行采集时,电脑的CPU和内存消耗并无显明变化。
http://topic.csdn.net/u/20110517/13/8776eb52-672a-45ac-946e-7aa7a3c7e33b.html
的继续。现在这个问题似乎还是没有解决我重新编写了index.php,现在index.php不再调用数据库,甚至都包含操作mysql的类文件。
a.php也不调用数据库,它只执行采集的任务。
a.php与index.php是两个独立文件,它们共同包含了另外两个文件(这两个文件中并不执行任务,只是函数),现在的情况是在执行a.php进行采集时,index.php却打不开,等a.php采集完成后index.php才能正常打开。请问这是哪儿出现了问题?
同时,我观察了在执行a.php进行采集时,电脑的CPU和内存消耗并无显明变化。
解决方案 »
- ★★请高手指点,求一sql的写法●●
- 你好,帮我写个PHP的代码好吗,我是初学者?
- Discuz!-牛的过火了
- php初學者...怎樣接收數組的內容吖!!!
- 高手现身,mysql联表查询,过滤相同内容并输出字段值用逗号隔开
- 一个表中的字段名和另一个表中的字段值能联系起来吗?
- php多版本问题
- 用session_set_save_handler来保存session文件时,sess_gc函数用写删除过期的处理过程吗?因为php.ini中也有这个时间,那么在此处,我还
- 请问php怎么写一个长字符串到oracle9i的xmltype字段?
- 谁能教小弟用PHP+MySQL建一个语音聊天室,给1000分,UP也有分!!
- 求PHP 执行时间问题
- php+mysql如何存储和读取数据库中的flash内容
http://surmise-sky.com/thinkin-about-php-session-lock-operation/PHP locks the session file until it is closed. If you have 2 scripts using the same session (i.e. from the same user) then the 2nd script will not finish its call to session_start() until the first script finishes execution.
If you have scripts that run for more than a second and users may be making more than 1 request at a time then it is worth calling session_write_close() as soon as you’ve finished writing session data.