开发者

Getting error in long running PHP script

As this is my first PHP web application so dont know mich about php configuration.

Here is my case: I have developed an application in PHP/mysql, in which user can search his real followers.

Now problem is that a user having say upto 2k followers and 500 real f开发者_JAVA百科ollowers in that, does not give any error, but when i move to big user 10k or more , he usually has more than 1k real followers, in this case i get error that invalid argument supplied for on line 354, means it's not getting rest data. Due to this it shows incomplete results. Why this is so ?

According to php configuration:

max_input_time -30
max_execution_time - 60 
memory_limit - 64M

do i need to make change in these?

or anything else i need to do?

Your help will be greatly appreciated guys?

Thank you in advance.

Code :

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>";
     }


}


i get error that invalid argument supplied for on line 354

This seems unrelated to your PHP configuration.

You just need to have a look at what's happening on line 354.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜