Permalink
Browse files

produce continous output to keep the browser loading the page (via ht…

  • Loading branch information...
FlominatorTM committed Sep 3, 2016
1 parent 063a0b6 commit ef5e6bcf62fe1a9ae49d3d757b04f8a6c760bf64
Showing with 6 additions and 1 deletion.
  1. +6 −1 inventory.php
@@ -68,14 +68,18 @@ function get_plain_text_from_article($articleenc)
function compare_lists($needles, $haystack)
{
//echo "entering compare_lists";
echo '<!--- it seems that some output every once in a while keeps the browser';
echo ' from stopping to load the page. Therefor here there will be a lot of dots ';
echo " that pop up while the script is working it's ass off: ";
$results = array();
//$hits = 0;
$paragraphsRemoved = explode("\n",$needles);
//echo "<h2> haystack</h2><textarea>$haystack</textarea>";
//echo "<h2> needles</h2><textarea>$needles</textarea>";
foreach($paragraphsRemoved AS $newLine)
{
set_time_limit(60);
set_time_limit(120);
echo ".";
$onlyOneNewArticle = explode("]]:", $newLine);
if( stristr( $onlyOneNewArticle[0], "*" )
&& !stristr($haystack, $onlyOneNewArticle[0] )
@@ -90,6 +94,7 @@ function compare_lists($needles, $haystack)
}
//echo "$hits hits";
//echo "leaving compare_lists";
echo '-->';
return $results;
}

0 comments on commit ef5e6bc

Please sign in to comment.