Creativebits.org

an All Creative World site
ItalianMike's picture
301 pencils

Need some basic help with PHP, for creating header/footer files

I want to use PHP to streamline my site. So I want to take my layout and split it into two halves (header.html & footer.html) then have each individual page request the header and footer via PHP to create the full layout. I don't think this is so complicated, but I'm in the dark about one aspect. That's setting up the head of the header file so that certain information changes accordingly depending on what page you are on. For example the "title" tag would need to change according to what page is loading. Same with certain meta tags.

I hope I explained myself properly, and I hope someone here can give me some detailed examples of how this is done. I must confess I'm a PHP idiot, I don't know much at all, but I've managed to get a few scripts going in the past.

Thanks in advance.

Commenting on this Forum topic is closed.

mijlee's picture
501 pencils

All very easy.

How do you want to ad the info? Are you going to hand code each page?

I could easily set something up for you, send me an email with a more detailed spec.

—

----------------------
http://mijlee.com
----------------------

Creativebits is a blog about creativity, design and Macs. We also have a critique section where you can post your work to get opinions and a forum to discuss any design related topics.

Recommend us on Google

Latest critique

Do you need a great new logo?

If you need a logo for your company or product you can get it done with us.
In our logo store you can pick from over 28,000 pre-made logos that will be customized to your name for free or you can post a contest for us for just $250 and our designers from all over the world will submit dozens of logo design suggestions to your specific needs.

Marketplace