Probleme bei Dateiarbeit.

Crazy_down

Erfahrenes Mitglied
Hi, also ich habe eine HTML datei mit folgendem Inhalt.
HTML:
<html>
<head>
<title></title>
<meta http-equiv="expires" content="0">
<style type="text/css">
<!--

/* page title */
div.mon_title 
{     
    font-weight: bold;
    font-size: larger;    
}

table.info
{
    background-color: #F4F4F4;
    border: 2px;
    border-style:solid;
}

table.mon_list
{
    background-color: #F4F4F4;
    border: 2px;
    border-style:solid;
}

td.info
{

}

th.list,
td.list
{

}

-->
</style>
<meta name="generator" content="gp-Untis 2007">
<meta name="company" content="Gruber &amp; Petters Software, A-2000 Stockerau, Austria, www.grupet.at">
<meta http-equiv="refresh" content="5; URL=subst_001.htm">
</head>

<body bgcolor="#F0F0F0">
<CENTER>
<TABLE  align="bottom" cellspacing="3" cellpadding="2">
<TR>
<TD align="bottom">
<font face="Verdana" size="6" color="#FF8000"><font size=-1>2007</font></font>
<br><font size="4" color="#000000" face="Arial">Info-Stundenplan</font>
</TD>

<TD>&nbsp;</TD>

<TD>

<TABLE width="100%" cellspacing="2" cellpadding="2">
 <tr>
  <TD>Stundenplan 2007/2008</TD>
  <TD>&nbsp;&nbsp;&nbsp;</TD>
  <TD>&nbsp;&nbsp;&nbsp;</TD>
  <TD></TD>
 </TR>
 <TR> 
  <TD>Gilt ab: 10. Oktober</TD>
  <TD>&nbsp;&nbsp;&nbsp;</TD>
  <TD>&nbsp;&nbsp;&nbsp;</TD>
  <TD>Stand: 22.06.2007 14:12</TD>
 </TR>
</TABLE>

</TD>

</tr>
</TABLE>
<p>

<font size="3" face="Arial">
<div class='mon_title'>28.8.2006 Montag</div><p>
<table class='mon_list' rules="all" cellpadding="1" cellspacing="1">
<tr class='list'><th class='list' align=center>Vtr-Nr.</th><th class='list' align=center>Art</th><th class='list' align=center>Datum</th><th class='list' align=center>Stunde</th><th class='list' align=center>(Fach)</th><th class='list' align=center>Fach</th><th class='list' align=center>(Lehrer)</th><th class='list' align=center>Vertreter</th><th class='list' align=center>(Klasse(n))</th><th class='list' align=center>Klasse(n)</th><th class='list' align=center>(Raum)</th><th class='list' align=center>Raum</th><th class='list' align=center>Vertr. von</th><th class='list' align=center>(Le.) nach</th><th class='list' align=center>Text</th><th class='list' align=center>Vertretungs-Text</th><th class='list' align=center>Kopplung.</th><th class='list' align=center>Neu</th></tr>
<tr class='list'><td class='list' align=center>713</td><td class='list' align=center>Vertretung</td><td class='list' align=center>28.8. Mo</td><td class='list' align=center>1</td><td class='list' align=center>D</td><td class='list' align=center>D</td><td class='list' align=center>Hugo</td><td class='list' align=center>Nobel</td><td class='list' align=center>3b</td><td class='list' align=center>3b</td><td class='list' align=center>Ra</td><td class='list' align=center>Ra</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list' align=center>x</td></tr>
<tr class='list'><td class='list' align=center>714</td><td class='list' align=center>Vertretung</td><td class='list' align=center>28.8. Mo</td><td class='list' align=center>2</td><td class='list' align=center>D</td><td class='list' align=center>D</td><td class='list' align=center>Hugo</td><td class='list' align=center>Curie</td><td class='list' align=center>3a</td><td class='list' align=center>3a</td><td class='list' align=center>R3a</td><td class='list' align=center>R3a</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list' align=center>x</td></tr>
<tr class='list'><td class='list' align=center>25</td><td class='list' align=center>Pausenaufsicht</td><td class='list' align=center>28.8. Mo</td><td class='list' align=center>2/3</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list' align=center>Hugo</td><td class='list' align=center>Gauss</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list' align=center>Kell</td><td class='list' align=center>Kell</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list' align=center>x</td></tr>
<tr class='list'><td class='list' align=center>715</td><td class='list' align=center>Vertretung</td><td class='list' align=center>28.8. Mo</td><td class='list' align=center>3</td><td class='list' align=center>D</td><td class='list' align=center>D</td><td class='list' align=center>Hugo</td><td class='list' align=center>Gauss</td><td class='list' align=center>4</td><td class='list' align=center>4</td><td class='list' align=center>R1a</td><td class='list' align=center>R1a</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list' align=center>x</td></tr>
<tr class='list'><td class='list' align=center>4</td><td class='list' align=center>Vertretung</td><td class='list' align=center>28.8. Mo</td><td class='list' align=center>4</td><td class='list' align=center>D</td><td class='list' align=center>D</td><td class='list' align=center>Hugo</td><td class='list' align=center>Gauss</td><td class='list' align=center>4</td><td class='list' align=center>4</td><td class='list' align=center>R1a</td><td class='list' align=center>R1b</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list' align=center>x</td></tr>
<tr class='list'><td class='list' align=center>716</td><td class='list' align=center>Entfall</td><td class='list' align=center>28.8. Mo</td><td class='list' align=center>5</td><td class='list' align=center>Gw</td><td class='list' align=center>---</td><td class='list' align=center>Hugo</td><td class='list' align=center>---</td><td class='list' align=center>3a</td><td class='list' align=center>3a</td><td class='list' align=center>R3a</td><td class='list' align=center>---</td><td class='list'>&nbsp;</td><td class='list' align=center>Entfall</td><td class='list' align=center>&nbsp;</td><td class='list' align=center>&nbsp;</td><td class='list' align=center>&nbsp;</td><td class='list' align=center>&nbsp;</td></tr>
</table>
<p>
<font size="3" face="Arial">

</font></font>

</CENTER>
<p>
</body>
</html>
Ich möchte aber nur diese Stelle hier haben.
HTML:
<table class='mon_list' rules="all" cellpadding="1" cellspacing="1">
<tr class='list'><th class='list' align=center>Vtr-Nr.</th><th class='list' align=center>Art</th><th class='list' align=center>Datum</th><th class='list' align=center>Stunde</th><th class='list' align=center>(Fach)</th><th class='list' align=center>Fach</th><th class='list' align=center>(Lehrer)</th><th class='list' align=center>Vertreter</th><th class='list' align=center>(Klasse(n))</th><th class='list' align=center>Klasse(n)</th><th class='list' align=center>(Raum)</th><th class='list' align=center>Raum</th><th class='list' align=center>Vertr. von</th><th class='list' align=center>(Le.) nach</th><th class='list' align=center>Text</th><th class='list' align=center>Vertretungs-Text</th><th class='list' align=center>Kopplung.</th><th class='list' align=center>Neu</th></tr>
<tr class='list'><td class='list' align=center>713</td><td class='list' align=center>Vertretung</td><td class='list' align=center>28.8. Mo</td><td class='list' align=center>1</td><td class='list' align=center>D</td><td class='list' align=center>D</td><td class='list' align=center>Hugo</td><td class='list' align=center>Nobel</td><td class='list' align=center>3b</td><td class='list' align=center>3b</td><td class='list' align=center>Ra</td><td class='list' align=center>Ra</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list' align=center>x</td></tr>
<tr class='list'><td class='list' align=center>714</td><td class='list' align=center>Vertretung</td><td class='list' align=center>28.8. Mo</td><td class='list' align=center>2</td><td class='list' align=center>D</td><td class='list' align=center>D</td><td class='list' align=center>Hugo</td><td class='list' align=center>Curie</td><td class='list' align=center>3a</td><td class='list' align=center>3a</td><td class='list' align=center>R3a</td><td class='list' align=center>R3a</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list' align=center>x</td></tr>
<tr class='list'><td class='list' align=center>25</td><td class='list' align=center>Pausenaufsicht</td><td class='list' align=center>28.8. Mo</td><td class='list' align=center>2/3</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list' align=center>Hugo</td><td class='list' align=center>Gauss</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list' align=center>Kell</td><td class='list' align=center>Kell</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list' align=center>x</td></tr>
<tr class='list'><td class='list' align=center>715</td><td class='list' align=center>Vertretung</td><td class='list' align=center>28.8. Mo</td><td class='list' align=center>3</td><td class='list' align=center>D</td><td class='list' align=center>D</td><td class='list' align=center>Hugo</td><td class='list' align=center>Gauss</td><td class='list' align=center>4</td><td class='list' align=center>4</td><td class='list' align=center>R1a</td><td class='list' align=center>R1a</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list' align=center>x</td></tr>
<tr class='list'><td class='list' align=center>4</td><td class='list' align=center>Vertretung</td><td class='list' align=center>28.8. Mo</td><td class='list' align=center>4</td><td class='list' align=center>D</td><td class='list' align=center>D</td><td class='list' align=center>Hugo</td><td class='list' align=center>Gauss</td><td class='list' align=center>4</td><td class='list' align=center>4</td><td class='list' align=center>R1a</td><td class='list' align=center>R1b</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list'>&nbsp;</td><td class='list' align=center>x</td></tr>
<tr class='list'><td class='list' align=center>716</td><td class='list' align=center>Entfall</td><td class='list' align=center>28.8. Mo</td><td class='list' align=center>5</td><td class='list' align=center>Gw</td><td class='list' align=center>---</td><td class='list' align=center>Hugo</td><td class='list' align=center>---</td><td class='list' align=center>3a</td><td class='list' align=center>3a</td><td class='list' align=center>R3a</td><td class='list' align=center>---</td><td class='list'>&nbsp;</td><td class='list' align=center>Entfall</td><td class='list' align=center>&nbsp;</td><td class='list' align=center>&nbsp;</td><td class='list' align=center>&nbsp;</td><td class='list' align=center>&nbsp;</td></tr>
</table>

Also dachte ich mir das ich mit einer if bedingung genau die stellen
'<table class=' & '</table>' ermittel und nur den teil dazwischen ausgeben lasse.
Aber irgendwie klappt das nicht so wie ich möchte.

So habe ich erstmal angefangen.
PHP:
<?php
//Datei Öffnen mit Fopen()
$datei = fopen('subst_001.htm','r');
$schreiben = fopen('subst_001.txt','w');
// Inhalt der Datei Zeilenweise Einlesen und im Browser ausgeben.
if($datei)
{
 while (!feof($datei)) {
    $zeile = fgets($datei);
    fwrite($schreiben, $zeile);
         if($zeile='<table class=')
             {
                          echo "Zeile mit <table class= gefunden";
                         while($zeile!='</table>')
                         {
                          echo $zeile;
                         }
             }
    }
    fclose($datei);
 }
?>

Es wird mir der Inhalt einfach nicht angezeigt. Mache ich die Ausgabe vor die If-Bedingung klappt die Ausgabe auch
Die Ausgabe das die Zeile gefunden wurde funktioniert auch.

greetz
crazy_down
 
OK, also ich glaube es liegt zum einen an meiner if Bedingung
PHP:
if($zeile='<table class=')
             {
Das sie so hier aussehen muss.
PHP:
if($zeile=='<table class=')
             {


Und zum anderen steht in $zeile immer die ganze Zeile und ich brauche wenn ich mich nicht verzählt habe nur die ersten 12 Zeichen.

Berichtigt mich bitte wenn es Falsch ist.
Und wie könnte ich das lösen ?
 
Das ganze mit "while" zu durchlaufen wäre in einem grösseren HTML-File wohl etwas langwierig und unübersichtlich.

MEIN Tip dazu:
Gib der Tabelle eine eindeutige ID, und suche dann die Zeichenkette mit strpos(), und extrahiere das ganze mit substr():

HTML:
<table id="MyTable" cellpadding="0" cellspacing="0" border="0">
...
</table>

PHP:
$str = file_get_contents('subst_001.htm');
$start = strpos("<table id=\"MyTable\"", $str);

$str = substr($str, $start);
$end = strpos("</table>", $str);
$str = substr($str, $end+8);
...
// Weitere Funktionen

LG
Andy
 
Ups, das habe ich wohl vergessen zu sagen. Ich habe keinen Einfluss auf die HTML-Datei.
Also die bekomme ich so und müsste sie per Hand bearbeiten und das wäre zu aufwendig.
Deswegen habe ich schon nach dieser Stelle gesucht die nur ein einziges mal vorkommt.
Kann ich denn irgendwie mein $zeile nach den ersten 12 Zeichen abfragen und gucken ob es dieser String ist ?
Wenn ja gib alles aus bis $zeile </table> wird. ?
 
habe gesehen, dass die Tabelle eine CSS-Klasse enthält ... wenn DIE einmalig drin vorkommt, könntest Du auch gezielt nach ihr suchen.

Ansonsten bliebe noch, den HTML-Inhalt mit strtok zu zerlegen und so die Tabellen auszufiltern.
 
Hi, ja die class kommt nur einmal vor. Wie könnte ich genau nach ihr suchen ?
einfach mit if($zeile=='<table class=mon_list')
oder ?
egal nach was ich $zeile durchsuchen lasse, er gibt mir ni aus das er den vergleich gefunden hat.
 
Du sagst es: es ist ein VERGLEICH - dieser ist NUR wahr, wenn beide Zeichenfolgen 100% identisch sind. Du musst - wenn du if verwenden willst den Vergleich mit strstr() machen, denn in dieser Funktion suchst Du nur dem Vorkommen der Zeichenfolge:

PHP:
if( strstr("<table class=mon_list", $zeile) )
  // Gefunden
else
  // Nicht gefunden
 
So, die HTML Datei sieht jetzt doch ein bisschen anders aus aber ich muss trotzdem noch an <td> ran.
HTML:
HTML:
<BR>
<TABLE border="3" rules="all" bgcolor="#E7E7E7" cellpadding="1" cellspacing="1">
<TR>
<TD align=center><font size="3" face="Arial">
Vtr-Nr.
</font> </TD>
<TD align=center><font size="3" face="Arial">
Art
</font> </TD>
<TD align=center><font size="3" face="Arial">
Datum
</font> </TD>
<TD align=center><font size="3" face="Arial">
Stunde
</font> </TD>
<TD align=center><font size="3" face="Arial">
(Fach)
</font> </TD>
<TD align=center><font size="3" face="Arial">
Fach
</font> </TD>
<TD align=center><font size="3" face="Arial">
(Lehrer)
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertreter
</font> </TD>
<TD align=center><font size="3" face="Arial">
(Klasse(n))
</font> </TD>
<TD align=center><font size="3" face="Arial">
Klasse(n)
</font> </TD>
<TD align=center><font size="3" face="Arial">
(Raum)
</font> </TD>
<TD align=center><font size="3" face="Arial">
Raum
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertr. von
</font> </TD>
<TD align=center><font size="3" face="Arial">
(Le.) nach
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertretungs-Text
</font> </TD>
<TD align=center><font size="3" face="Arial">
Kopplung.
</font> </TD>
<TD align=center><font size="3" face="Arial">
Neu
</font> </TD>
</TR><TR>
<TD align=center><font size="3" face="Arial">
713
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertretung
</font> </TD>
<TD align=center><font size="3" face="Arial">
28.8. Mo
</font> </TD>
<TD align=center><font size="3" face="Arial">
1
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center><font size="3" face="Arial">
3b
</font> </TD>
<TD align=center><font size="3" face="Arial">
3b
</font> </TD>
<TD align=center><font size="3" face="Arial">
Ra
</font> </TD>
<TD align=center><font size="3" face="Arial">
Ra
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
714
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertretung
</font> </TD>
<TD align=center><font size="3" face="Arial">
28.8. Mo
</font> </TD>
<TD align=center><font size="3" face="Arial">
2
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center><font size="3" face="Arial">
3a
</font> </TD>
<TD align=center><font size="3" face="Arial">
3a
</font> </TD>
<TD align=center><font size="3" face="Arial">
R3a
</font> </TD>
<TD align=center><font size="3" face="Arial">
R3a
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
25
</font> </TD>
<TD align=center><font size="3" face="Arial">
Pausenaufsicht
</font> </TD>
<TD align=center><font size="3" face="Arial">
28.8. Mo
</font> </TD>
<TD align=center><font size="3" face="Arial">
2/3
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Kell
</font> </TD>
<TD align=center><font size="3" face="Arial">
Kell
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
715
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertretung
</font> </TD>
<TD align=center><font size="3" face="Arial">
28.8. Mo
</font> </TD>
<TD align=center><font size="3" face="Arial">
3
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
R1a
</font> </TD>
<TD align=center><font size="3" face="Arial">
R1a
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertretung
</font> </TD>
<TD align=center><font size="3" face="Arial">
28.8. Mo
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
R1a
</font> </TD>
<TD align=center><font size="3" face="Arial">
R1b
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
716
</font> </TD>
<TD align=center><font size="3" face="Arial">
Entfall
</font> </TD>
<TD align=center><font size="3" face="Arial">
28.8. Mo
</font> </TD>
<TD align=center><font size="3" face="Arial">
5
</font> </TD>
<TD align=center><font size="3" face="Arial">
Gw
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center><font size="3" face="Arial">
3a
</font> </TD>
<TD align=center><font size="3" face="Arial">
3a
</font> </TD>
<TD align=center><font size="3" face="Arial">
R3a
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Entfall
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
24
</font> </TD>
<TD align=center><font size="3" face="Arial">
Pausenaufsicht
</font> </TD>
<TD align=center><font size="3" face="Arial">
29.8. Di
</font> </TD>
<TD align=center><font size="3" face="Arial">
1/2
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Hof1
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hof1
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
717
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertretung
</font> </TD>
<TD align=center><font size="3" face="Arial">
30.8. Mi
</font> </TD>
<TD align=center><font size="3" face="Arial">
1
</font> </TD>
<TD align=center><font size="3" face="Arial">
His
</font> </TD>
<TD align=center><font size="3" face="Arial">
His
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center><font size="3" face="Arial">
2a
</font> </TD>
<TD align=center><font size="3" face="Arial">
2a
</font> </TD>
<TD align=center><font size="3" face="Arial">
R2a
</font> </TD>
<TD align=center><font size="3" face="Arial">
R2a
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
718
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertretung
</font> </TD>
<TD align=center><font size="3" face="Arial">
30.8. Mi
</font> </TD>
<TD align=center><font size="3" face="Arial">
2
</font> </TD>
<TD align=center><font size="3" face="Arial">
Gw
</font> </TD>
<TD align=center><font size="3" face="Arial">
Gw
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center><font size="3" face="Arial">
3b
</font> </TD>
<TD align=center><font size="3" face="Arial">
3b
</font> </TD>
<TD align=center><font size="3" face="Arial">
Ra
</font> </TD>
<TD align=center><font size="3" face="Arial">
Ra
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
719
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertretung
</font> </TD>
<TD align=center><font size="3" face="Arial">
30.8. Mi
</font> </TD>
<TD align=center><font size="3" face="Arial">
3
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center><font size="3" face="Arial">
3b
</font> </TD>
<TD align=center><font size="3" face="Arial">
3b
</font> </TD>
<TD align=center><font size="3" face="Arial">
Ra
</font> </TD>
<TD align=center><font size="3" face="Arial">
Ra
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
720
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertretung
</font> </TD>
<TD align=center><font size="3" face="Arial">
30.8. Mi
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center><font size="3" face="Arial">
3a
</font> </TD>
<TD align=center><font size="3" face="Arial">
3a
</font> </TD>
<TD align=center><font size="3" face="Arial">
Ra
</font> </TD>
<TD align=center><font size="3" face="Arial">
Ra
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
723
</font> </TD>
<TD align=center><font size="3" face="Arial">
Freisetzung
</font> </TD>
<TD align=center><font size="3" face="Arial">
30.8. Mi
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
E
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center><font size="3" face="Arial">
Arist
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
1a
</font> </TD>
<TD align=center><font size="3" face="Arial">
(1a)
</font> </TD>
<TD align=center><font size="3" face="Arial">
R1a
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Freis.
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
725
</font> </TD>
<TD align=center><font size="3" face="Arial">
Freisetzung
</font> </TD>
<TD align=center><font size="3" face="Arial">
30.8. Mi
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center><font size="3" face="Arial">
Rub
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
1b
</font> </TD>
<TD align=center><font size="3" face="Arial">
(1b)
</font> </TD>
<TD align=center><font size="3" face="Arial">
R2b
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Freis.
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
9
</font> </TD>
<TD align=center><font size="3" face="Arial">
Entfall
</font> </TD>
<TD align=center><font size="3" face="Arial">
30.8. Mi
</font> </TD>
<TD align=center><font size="3" face="Arial">
5
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
R1a
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Entfall
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
724
</font> </TD>
<TD align=center><font size="3" face="Arial">
Freisetzung
</font> </TD>
<TD align=center><font size="3" face="Arial">
30.8. Mi
</font> </TD>
<TD align=center><font size="3" face="Arial">
5
</font> </TD>
<TD align=center><font size="3" face="Arial">
Mus
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center><font size="3" face="Arial">
Callas
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
1a
</font> </TD>
<TD align=center><font size="3" face="Arial">
(1a)
</font> </TD>
<TD align=center><font size="3" face="Arial">
R1b
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Freis.
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
721
</font> </TD>
<TD align=center><font size="3" face="Arial">
eigenverantwortliches Arbeiten
</font> </TD>
<TD align=center><font size="3" face="Arial">
30.8. Mi
</font> </TD>
<TD align=center><font size="3" face="Arial">
7
</font> </TD>
<TD align=center><font size="3" face="Arial">
His
</font> </TD>
<TD align=center><font size="3" face="Arial">
His
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
+
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
R1a
</font> </TD>
<TD align=center><font size="3" face="Arial">
R1a
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
722
</font> </TD>
<TD align=center><font size="3" face="Arial">
Entfall
</font> </TD>
<TD align=center><font size="3" face="Arial">
30.8. Mi
</font> </TD>
<TD align=center><font size="3" face="Arial">
8
</font> </TD>
<TD align=center><font size="3" face="Arial">
His
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center><font size="3" face="Arial">
3b
</font> </TD>
<TD align=center><font size="3" face="Arial">
3b
</font> </TD>
<TD align=center><font size="3" face="Arial">
Ra
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Entfall
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
26
</font> </TD>
<TD align=center><font size="3" face="Arial">
Pausenaufsicht
</font> </TD>
<TD align=center><font size="3" face="Arial">
31.8. Do
</font> </TD>
<TD align=center><font size="3" face="Arial">
0/1
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Hof2
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hof2
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
10
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertretung
</font> </TD>
<TD align=center><font size="3" face="Arial">
31.8. Do
</font> </TD>
<TD align=center><font size="3" face="Arial">
1
</font> </TD>
<TD align=center><font size="3" face="Arial">
His
</font> </TD>
<TD align=center><font size="3" face="Arial">
His
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center><font size="3" face="Arial">
3b
</font> </TD>
<TD align=center><font size="3" face="Arial">
3b
</font> </TD>
<TD align=center><font size="3" face="Arial">
Ra
</font> </TD>
<TD align=center><font size="3" face="Arial">
Ra
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
726
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertretung
</font> </TD>
<TD align=center><font size="3" face="Arial">
31.8. Do
</font> </TD>
<TD align=center><font size="3" face="Arial">
2
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center><font size="3" face="Arial">
3b
</font> </TD>
<TD align=center><font size="3" face="Arial">
3b
</font> </TD>
<TD align=center><font size="3" face="Arial">
Ra
</font> </TD>
<TD align=center><font size="3" face="Arial">
Ra
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
727
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertretung
</font> </TD>
<TD align=center><font size="3" face="Arial">
31.8. Do
</font> </TD>
<TD align=center><font size="3" face="Arial">
3
</font> </TD>
<TD align=center><font size="3" face="Arial">
Gw
</font> </TD>
<TD align=center><font size="3" face="Arial">
Gw
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
R3a
</font> </TD>
<TD align=center><font size="3" face="Arial">
R3a
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
27
</font> </TD>
<TD align=center><font size="3" face="Arial">
Pausenaufsicht
</font> </TD>
<TD align=center><font size="3" face="Arial">
31.8. Do
</font> </TD>
<TD align=center><font size="3" face="Arial">
3/4
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Hof1
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hof1
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
13
</font> </TD>
<TD align=center><font size="3" face="Arial">
Vertretung
</font> </TD>
<TD align=center><font size="3" face="Arial">
31.8. Do
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
D
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
?
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
4
</font> </TD>
<TD align=center><font size="3" face="Arial">
R1a
</font> </TD>
<TD align=center><font size="3" face="Arial">
R1b
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
<TD align=center><font size="3" face="Arial">
728
</font> </TD>
<TD align=center><font size="3" face="Arial">
Entfall
</font> </TD>
<TD align=center><font size="3" face="Arial">
31.8. Do
</font> </TD>
<TD align=center><font size="3" face="Arial">
8
</font> </TD>
<TD align=center><font size="3" face="Arial">
Gw
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center><font size="3" face="Arial">
Hugo
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center><font size="3" face="Arial">
3b
</font> </TD>
<TD align=center><font size="3" face="Arial">
3b
</font> </TD>
<TD align=center><font size="3" face="Arial">
Ra
</font> </TD>
<TD align=center><font size="3" face="Arial">
---
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center><font size="3" face="Arial">
Entfall
</font> </TD>
<TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD><TD align=center>&nbsp;</TD></TR><TR>
......
So ich will nun einfach mti fgets Zeile für Zeile durch gehen und gucken was ich brauche.
Also z.b.
PHP:
$gefunden=explode('<TD align=center><font size="3" face="Arial">',$zeile);
Und alles was dazwischen ist speichern z.b. mit
PHP:
$lehrer=$gefunden[0];
Oder so änlich ;)
Irgendwie muss ich doch an dieses Datensätze ran kommen ?
 
Zurück