Hello,
I am trying to replace the number of repeated code with
require function.
Requiring another PHP page that has only text, the online code (view Source) shows the text from the other php file and hides the code.
Requiring the Header file that repeats on every page shows all code and treated as a regular HTML file.
the Header also includes JS menu.and banner picture.
as an example, off line code is
<?php
require('header.php');
echo 'The header.<br />';
?>
But on line : it shows all html and js .code
I am trying to replace the number of repeated code with
require function.
Requiring another PHP page that has only text, the online code (view Source) shows the text from the other php file and hides the code.
Requiring the Header file that repeats on every page shows all code and treated as a regular HTML file.
the Header also includes JS menu.and banner picture.
as an example, off line code is
<?php
require('header.php');
echo 'The header.<br />';
?>
But on line : it shows all html and js .code