Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2015-04-15 14:16:55

joel
Member
Registered: 2014-07-04
Posts: 440

header. php how to assign a single header.php to use all pages

I am still learning. but I find it that I have to repeat header in all pages.php and footer. rather than a single header and footer .php.

then the rest pages can be the body and function.

how to use a single header.

in header it will have user info if already login.

help.


Warning! be informed and be forewarned. <p>
<?php
I'm not a native English Man. So my comments might contain some grammatical explosive (ELD), missapropreation of words (dinamyt), The use of wrong words (missiles), & mis spelling of words (war drones). Any of the occurrence can cause havoc. So be warned
?>

Offline

#2 2015-04-15 14:37:54

seven
Member
From: Torino, Italy
Registered: 2010-08-19
Posts: 314
Website

Re: header. php how to assign a single header.php to use all pages

google "php include"


gamezoo.org - serious gaming services for serious gamers.

Offline

#3 2015-04-16 08:39:28

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,292
Website

Re: header. php how to assign a single header.php to use all pages

You've been in programming long enough to realise the benefits or disadvantages of require, require_once, include & include_once.

You've used them in this topic. This just seems like an RTFM question, it's exactly what the manual is there for in the first place.

Offline

#4 2015-04-16 14:15:45

joel
Member
Registered: 2014-07-04
Posts: 440

Re: header. php how to assign a single header.php to use all pages

yea. I just learnt about it as regards to HTML.

I was never too sure how it works with HTML.

now I know how to do it. google really help in that.


Warning! be informed and be forewarned. <p>
<?php
I'm not a native English Man. So my comments might contain some grammatical explosive (ELD), missapropreation of words (dinamyt), The use of wrong words (missiles), & mis spelling of words (war drones). Any of the occurrence can cause havoc. So be warned
?>

Offline

Board footer

Powered by FluxBB