Ich habe eine Datei index.php, die drei Dateien per include einfügen soll.
Die Dateien head_section.php, navbar.php und footer.php liegen in einem Verzeichnis includes parallel zur index.php.
Die Datei Index.php:
- Code: Select all
<?php require_once('includes/head_section.php') ?>
<title>MyTitle</title>
</head>
<body>
<div class="container">
<!-- navbar -->
<?php include('includes/navbar.php') ?>
<!-- // navbar -->
<!-- Page content -->
<div class="content">
<h2 class="content-title">Artikel</h2>
<hr>
<!-- more content ... -->
</div>
<!-- // Page content -->
<!-- footer -->
<?php include('includes/footer.php') ?>
Wenn ich die index.php in XAMPP starte, werden die Includes ber nicht ausgeführt. Woran kann das liegen?
Vielen Dank für Eure Hilfe.
GraukopfKlausi