PhpRiot

Listing 1754

Followup to listing-1753.php, submitted by DaRooster.

Submitted by anonymous user, 14 November 2008
<?php
$i = 0; while(strpos($line[$i],"Spam-Status")<1 and $i<=$linemax) $i += 1;
   print("<br>$i should be less $linemax of 22 right now and this should be Spam-Start = *$line[$i]*<br>");
 if ($i<=$linemax) $i += 1;
        while($i<=$linemax and strlen(trim($line[$i]))<2 ) $i += 1;
        // found Spam-Status now getting first following non blank rec
        print("<br>Final resting point i=$i and array item= *$line[$i]*<br>");
 if ($i>$linemax)
     print ("<br>No Spam-Status tag line or did not follow record");
    else {
      $answer = $line[$i];
      // do your processing of $answer now
 }
Submit a Follow Up