Du musst natürlich noch mit
print $title;
print $author;
die entsprechenden Werte ausgeben, und einen kleinen Fehler beheben![Smilie](https://www.php-resource.de/forum/core/images/smilies/smile.gif)
Wo im Moment noch $nav steht
muss ein $file hin
print $title;
print $author;
die entsprechenden Werte ausgeben, und einen kleinen Fehler beheben
![Smilie](https://www.php-resource.de/forum/core/images/smilies/smile.gif)
Wo im Moment noch $nav steht
PHP-Code:
preg_match_all("/<author>(.*?)<\\/author>/i",$nav,$found);
preg_match_all("/<title>(.*?)<\\/title>/i",$nav,$found);
PHP-Code:
preg_match_all("/<author>(.*?)<\\/author>/i",$file,$found);
preg_match_all("/<title>(.*?)<\\/title>/i",$file,$found);
Kommentar