作者Liszt04 (走路往下看都会怕)
看板PHP
标题[请益] 请问一下放在free host上面的php问题
时间Wed Dec 14 16:58:59 2011
我的host是000webhost
我的网页要反覆的去做curl_multi_exec然後把东西读进去我的db
我检查了一下我的db通常前面5-10分钟都是对的
然後过几分钟就会跑出这东西
Fatal error: Maximum execution time of 10 seconds exceeded
出问题的地方是红色那行
$flag=null;
do {
//fetch pages in parallel
curl_multi_exec($curlHandle, $flag);
} while ($flag > 0);
想请问一下有人知道怎麽解决吗? 我试过exception丢掉也不行..zzz
set_time_limit也是不行的因为000webhost不给我set. orz
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.233.248.234
1F:推 Fantasywind:没有curl extension吧 12/14 17:01
2F:→ Liszt04:他的site有 因为我做1次做2次是对的 然後用while让他 12/14 17:27
3F:→ Liszt04:跑100次跑到20-30次就会出这问题 12/14 17:27
4F:→ tyf99:set_time_limit() 12/14 17:50
5F:→ tyf99:也许主机提供方不想让你跑太久的程式,锁死了 12/14 17:51
6F:→ tyf99:echo ini_get('max_execution_time'); 印出来看看 12/14 17:57
7F:→ Liszt04:嗯嗯 我问了还在等牠们回@@ 12/15 17:21