Hello,
Nehmen wir an, dass ich ein Layout hätte bei diesen Layout setze ich folgenden Code ein:
<? include("news123.inc.php"); ?>Als zweites::
Nehmen wir an das in der PHP datei "news123.inc.php" folgendes steht:
$datei= 'Hallo';
$news14= 'was ist mit du?';Als drittes:
Nehmen wir jetzt wieder das Layout her. Will jetzt nach dem Include befehl folgendes einfügen:
$datei und $news14
Dann führe doch die Inclusion auch mal auf dem Papier durch:
htmlcode htmlcode htmlcode
htmlcode htmlcode htmlcode
<?php include("news123.inc.php"); ?>
htmlcode htmlcode htmlcode
htmlcode htmlcode htmlcode
wird zu
htmlcode htmlcode htmlcode
htmlcode htmlcode htmlcode
<?php $datei= 'Hallo';
$news14= 'was ist mit du?';
?>
htmlcode htmlcode htmlcode
htmlcode htmlcode htmlcode
Nun sollte dir die Antwort aber alleine einfallen, oder? Sonst frag halt nochmal.
Harzliche Grüße aus http://www.annerschbarrich.de
Tom
Fortschritt entsteht nur durch die Auseinandersetzung der Kreativen
Nur selber lernen macht schlau