在长时间运行的PHP脚本中获取错误

时间:2010-08-13 07:24:31

标签: php config

因为这是我的第一个PHP Web应用程序,所以不知道关于php配置。

以下是我的案例:我在PHP / mysql中开发了一个应用程序,用户可以在其中搜索真实的粉丝。

现在的问题是,一个用户说拥有高达2k的粉丝和500个真正的粉丝,并没有给出任何错误,但当我转向大用户10k或更多时,他通常拥有超过1k的真正粉丝,在这种情况下我得到第354行提供的无效参数的错误,意味着它没有得到休息数据。因此,它显示不完整的结果。为什么会这样?

根据php配置:

max_input_time -30
max_execution_time - 60 
memory_limit - 64M

我需要对这些进行更改吗?

还是我需要做的其他事情?

你们的帮助会非常感激吗?

提前谢谢。

代码:

while($cID != 0)
{
    $followers = $t -> get_followers($unm, $cID); //get this array from twitter
    $nxtcursor = $followers['next_cursor_str'];
    //  print_r($followers);
    foreach($followers[users] as $followers)      //line no 354
    {
        //here i just get data into variables

       //here i save data into database
    }  

     $cID = $nxtcursor;
     if($nxtcursor == 0)
     {
          echo "<b>Reached to last cursor!!</b>";
     }


}

1 个答案:

答案 0 :(得分:1)

  

我收到第354行提供的无效参数错误

这似乎与您的PHP配置无关。

你只需看看第354行发生的事情。

相关问题