nur mal ne kleine frage:
- hab hier von xandros mal das template script gefunden
- dieses weist auf eine bestimmte datei zu
Beispiel:
<?php $tmpl_dir = 'templates/'; // TAGS für das Template "templ1.html" $tmpl_file = 'templ.html'; $file = file_get_contents($tmpl_dir.$tmpl_file); $tag[generator] = '{generator}'; $output[generator] = 'PHP Designer 2005'; $return=str_replace($tag,$output,$file); echo $return; ?>
nun ich will das es auf alle *.html im verzeichnis templates zuweist
aber wie?