Hallo mitanander!
Ich wollte einen scroller via http updatebar machen, da die einzelnen messages, durch ein <div> um schlossen sind dachte ich mir zunächst das:
	
Die schleife ist natürlich noch falsch, meine problem ist aber das aus dem $html schon beim ersten durchlaufen der schleife , alle $begin und $end verschwinden, so das ich dann ich nicht mehr weiter zerlegen kann. Wieso ist das so???  Hat jemand eine idee?
  Hat jemand eine idee?
Gruss timepoint5
					Ich wollte einen scroller via http updatebar machen, da die einzelnen messages, durch ein <div> um schlossen sind dachte ich mir zunächst das:
PHP-Code:
	
	
 $count = substr_count("$html", "<div class=akt>"); 
$count = $count;
echo $count;
echo "<br>";
for($i = 1; $i <= $count; $i++)
{
$begin = '<div class=akt>';
$end = "</div>";
$beginloc = strpos($html, $begin);
$endloc = strpos($html, $end) ;
$scr = substr($html, $beginloc, $endloc - $beginloc);
echo "begin bei: $beginloc<br> ende bei $endloc<br>";
echo "$scr<br>>----------------------------------------------------------------------------------------<<br>$html<br>";
} 
 Hat jemand eine idee?
  Hat jemand eine idee?Gruss timepoint5
 
          



 
  
							
						 
							
						
Kommentar