<?php
$fp = fopen("./news.txt","r");
if ($fp)
{
while(!feof($fp))
{
$text = fgets($fp);
$temp2 = explode ("||",$text);
echo"<b><br><br>$temp2[0] $temp2[1]</b><br>$temp2[2]";
}
fclose($fp);
}
print "<small><small>".count($temp2[0])." News</small></small>";
?>
<?php
$aDatei= file( './news.txt', 'r' ) or die( 'konnte nicht öffnen' );
for( $i1= count( $aDatei )- 1; $i1>= 0; $i1-- ) {
$temp2= explode( '||', $aDatei[$i1] );
echo "<b><br><br>$temp2[0] $temp2[1]</b><br>$temp2[2]";
}
// ACHTUNG! Diese Ausgabe macht keinen Sinn!
echo "<small><small>". count( $temp2[0] ). " News</small></small>";
?>
Anzahl der ausgefüllten Eingabefelder zählen - JavaScript
Computerfreaki 18.10.2008 - 13 Hits - 6 Antworten
PHP Hilfe
Blaberlin 21.10.2008 - 28 Hits - 9 Antworten
Fade Effekt bei Randombildwechsel
Sypro 28.10.2008 - 19 Hits - 10 Antworten
JSt: Zeichen einfügen im aktuellen Eingabefeld (Fokus) an der aktuellen Stelle
Frank37 23.10.2008 - 28 Hits - 1 Antwort