including content

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin Mücke

    #1

    including content

    I got a website consisting of about 150 php pages.
    The site uses a frameless table based design.
    Header and menu are always the same and therefore should be extracted.
    At the moment I got a "frame" (not a real html frame, more like
    "framework" ), that contains my menu and header content.
    In this php page I dynamically include all content pages.
    Downsides: All pages got the same meta tags.
    Now I am looking for a better solution. I considered to
    do it "upside down" by including the menu and header content into
    the content pages instead - this way each page could have their own meta
    tags. Problem: Depending on the directory depth, the path to the menu
    and header pages to includes always varies. Absolute paths don't seem to
    work with the php include command.
    What would you suggest me to do, and are there any automatical tools
    that could easily do the job for me?

    I've heard of a tool that creates "static" pages by "physically "
    including all contents into a page
    The link to that tool was:
    ELITETOGEL adalah link situs togel dan slot gacor hari ini resmi untuk bermain judi dengan aman , reputasi situs yang kredibel dan banyak pilihan game favorit anda bisa menjadi pilihan terbaik, di lengkapi dengan rtp slot tertinggi yang menjadikan ELITETOGEL situs no 1 indonesia


    Unfortunatelly, the link is broken.

    So in conlusion:

    - What would you suggest me to do to get individual meta tags for each
    page as fast and easy as possible?

    - Do you maybe know a tool that could help here?

    Thanks,

    Martin
  • Jerry Stuckle

    #2
    Re: including content

    Martin Mücke wrote:
    I got a website consisting of about 150 php pages.
    The site uses a frameless table based design.
    Header and menu are always the same and therefore should be extracted.
    At the moment I got a "frame" (not a real html frame, more like
    "framework" ), that contains my menu and header content.
    In this php page I dynamically include all content pages.
    Downsides: All pages got the same meta tags.
    Now I am looking for a better solution. I considered to
    do it "upside down" by including the menu and header content into
    the content pages instead - this way each page could have their own meta
    tags. Problem: Depending on the directory depth, the path to the menu
    and header pages to includes always varies. Absolute paths don't seem to
    work with the php include command.
    What would you suggest me to do, and are there any automatical tools
    that could easily do the job for me?
    >
    I've heard of a tool that creates "static" pages by "physically "
    including all contents into a page
    The link to that tool was:
    ELITETOGEL adalah link situs togel dan slot gacor hari ini resmi untuk bermain judi dengan aman , reputasi situs yang kredibel dan banyak pilihan game favorit anda bisa menjadi pilihan terbaik, di lengkapi dengan rtp slot tertinggi yang menjadikan ELITETOGEL situs no 1 indonesia

    >
    Unfortunatelly, the link is broken.
    >
    So in conlusion:
    >
    - What would you suggest me to do to get individual meta tags for each
    page as fast and easy as possible?
    >
    - Do you maybe know a tool that could help here?
    >
    Thanks,
    >
    Martin
    My pages typically include headers and footers, then have the content in
    them. I don't include another page of content.

    Absolute paths work fine with the include command. Just remember - they
    are absolute to the file system, not the web server. If you want them
    to be web server absolute, you need to use:

    include ($_SERVER['DOCUMENT_ROOT'] . '/path/to/header.php')

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    Working...