因为他们的任何加载在PHP循环中丢失? [关闭]

$listget=file_get_contents('http://mysite.com/list');

$list=explode('target="_',$listget);
$count=count($list);
$i='2';
for ($i=2 ; $i <= ($count-4) ; $i++) {

//function or statement here

if($my_statement===false){
  show cancel
    else{
      show second matter
         if($my_statement===false)
          {//nothing is here
            }
        else{
          show success with data}
          }
          }

else{
    show 1st matter
        if($my_statement===false)
             {
           //nothing is here}
        else{
           show success with data }
}

This code is working well. But when list amount is so big ( i.e more then 100 words) it just stop working after some times. Is it problem in loop or any where ?

Maximum execution time is by default 30 seconds.

You can check your actual settings with a php file

<?
phpinfo();
?>

If possible change your php.ini settings or use php cli. But be aware of server overall performance issues.

Maximum Execution Time