Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8762583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:33:54+00:00 2026-06-13T15:33:54+00:00

Right now, the basic structure of my site is pretty bulky. I know little

  • 0

Right now, the basic structure of my site is pretty bulky.

I know little about php, but I’ve managed to get by.

So, I was wondering – what’s the best way to load content?

Right now, I have all of my pages saved with .php, using some include() and require().

I’m about to go through and update it using a php model, but I want to be sure I do it right.

So.. I’m going to be linking my keywords, description, other METAs into my database. Seems less hectic that way. Any words of wisdom before I go breaking into my massive site?

Right now:

  • (doc tag/html/meta/etc)
  • anchor.php *Loads css/js and other vitals
  • /head
  • header.php *Contains body tag
  • [content (put inline on a static page)]
  • footer.php *Contains

The new version is more like

  • (doc tag)
  • php writes everything from to header.php
  • Break for content and still use static pages???
  • footer.php

Maybe it’s easier to just have 30+ separate pages with a few lines in each than generate pages dynamically? I want the content to be easy to edit.

Thanks for the help! *(sorry if it’s confusing at all).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T15:33:55+00:00Added an answer on June 13, 2026 at 3:33 pm

    Even in developing website, you must ever thinking about:

    • maintain your code DRY (dont repeat yourself)
    • encapsulate the ridondant code in some default structures (as programming oriented objects)

    depending of the content that your site must show, the option (as you say) “30+ separate pages with few lines” is the best according to the 2 rules described above.

    This let you the possibility to edit the website “speedly”, e.g. if you want to edit the header, you must edit only one .php file and all the pages affects the edit.
    In other case, if you want to edit the content of the page “X” you can go directly to this page and edit the content.

    Rememeber: try to have file that are bested implemented for the work that it must do, e.g. (something like that):

    • head.php (all that are in the head tag)
    • header.php (top of the page)
    • menu.php (the menu)
    • banner.php, banner1.php (something that are different between pages, but static itself as banners)
    • sidebar.php (the sidebar)
    • footer.php (bottom of the page)

    Doing this, in 4-5 require/include you can build simply a new page.

    Otherwise try to avoid pages that are re-used only one time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

right now i am learning C++, and now I know the basic concept of
Right now, I have: RewriteRule ^([^/\.]+)?$ index.php?id=$1 [L] to match any username at the
Right now I have a script that will get the last five files in
So right now, I'm just using a basic form to check a password. I
I've a basic URL validation in my appliction. Right now i'm using the following
I know how to add child nodes with SimpleXml and PHP but i have
So right now I have a fairly basic Executor service that I use to
I'm trying to build (right now just thinking/planning/drawing relations :] ) little modular system
I'm working on an assignment right now where we create our own basic, dynamically
Right now I have an upload field while uploads files to the server. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.