Get Website Lowest price!

Wordpress Experts!

×

php up to date

Divide a page header, content and footer using php

Divide a page header, content and footer using php


Now we see how to divide a page header, content and footer using php. It is usefull for if you have many pages in your website.If you create a header page you can avoid code repeat in all pages. you can simply call the header on all the pages. step 1:      create a header.php  header consist of doctype, title, meta tage, script style and body and menustep2:      create a footer.php  footer consist of all the bottom level menu and copyright information and privacy policy.step3:      create a page as many as you want with .php extensiton. tope of the page include('header.php'),  and bottom of the page write include('footer.php').  note: html,body opening tag comes under header.php and html,body closing tag comes under footer.php.you can write your js script either footer or header based on your needs.

SHARE

vmk

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment