just have another problem.
is there a way to include a file for example foo.php where <!--include here--!> sign is?
can i do that?
Code: Select all
<html>
<body>
<h1><!-- include here --!></h1>
</body
</html>Moderator: General Moderators
Code: Select all
<html>
<body>
<h1><!-- include here --!></h1>
</body
</html>Code: Select all
<?php
// index.php or main page etc....
$header = set_include_header($args);
$nav = set_include_nav($args);
$body = set_include_body($args);
include('template.php');
?>Code: Select all
// template.php
<html>
<body>
<h1><?php include($header); ?></h1>
<div><?php include($nav); ?></div>
<?php include($body); ?>
</body
</html>