Y
Y
yerdnaandrey2020-05-03 14:35:38
PHP
yerdnaandrey, 2020-05-03 14:35:38

How to make all pages have the same header?

Good afternoon.
<How to make sure that all forums and articles have the same header?So that you can sometimes change it.
Are databases needed or not?
Tell me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2020-05-03
@yerdnaandrey

copy the header block you need to a separate php file, and include it in other files, for example, via:
require_once('header.php');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question