Standardized web page set-up Nov10 '05

I’ve recently begun developing a standardized structure for all new web pages I create. My problem was that as I constantly start new web pages, for business or personal use - I always find myself having to set-up everything from scratch. This includes the initial HTML or PHP files, the CSS files, the JavaScript files, etc.

As I learn more about web development, and better ways to create and manage web pages - I apply these principles across all of my sites.

I guess I could call these principles the "Matthom Standards." In a nutshell - it’s my own, customized way of setting up web sites.

For example - at the root of my site, I typically start out with an index file - one of which controls my entire site. That index file has various PHP scripts, that apply "virtual directories," and other such things. In combination with an .htaccess file at the root, URL redirects are immediately in effect.

The point is... I use those same two set-up files, for every site I begin.

From there, I create a folder called css, which contains my style sheets - which are, initially screen.css, and print.css.

After that, I create a folder called scripts, which contains my JavaScript script file, and I typically call that file scripts.js.

I also use a generic images folder, that which contains all images.

As you can see, many elements are the same, across all of my sites. There are certain things that need to be in place - right "off the bat."

I could even go as far as standardizing the actual structure of the elements, in the HTML file. I’ve been trying to use the same elements in all of my sites, which typically comprises of these four, in this order:

<div id="header">

</div>

<div id="navigation">

</div>

<div id="content">

</div>

<div id="footer">

</div>

This is usually my foundation, and I can apply style sheets to change the appearance - across different sites.

So... to make a long story short - I’ve begun developing an HTML interface, which prompts me for site-specific things - such as custom images, custom 404 pages, etc.

You see, although there are many things that are the same - there are obviously things that are also different, across different sites.

With the help of PHP file functions, such as fopen and fwrite - I am able to dynamically create the initial files, in my FTP directory structure.

This will, hopefully, save me a lot of time, when starting up new web pages.

Categories: Efficiency , PHP , Web Development

Add Feedback (view all)

Leave feedback

Feedback

Input format: The editor controls below will assist with Markdown syntax.

Status

Sub-status

Your info

matthom is published and produced by Matt Thommes - an independent publishing enthusiast, mobile blogger, content creator, informative writer, web developer from a suburb of Chicago. Never one to conform, Matt intends to promote the effect the web has on our lives, in an effort to intensify, instruct, and clarify all that is happening around us.

Contact Matt

Popular Pages

  1. Fast rounded corners in Photoshop (3954 recent visits)
  2. PHP – passing variables across pages (1485 recent visits)
  3. JavaScript set selected on load (1209 recent visits)
  4. Removing all child nodes from an element (827 recent visits)
  5. iPod songs out of order? (720 recent visits)
  6. Britney - Everytime piano tab (649 recent visits)
  7. Firefox 3 smart address bar: wildcard search (607 recent visits)
  8. MySQL LEFT JOIN syntax (513 recent visits)
  9. Breathe Me - Sia (501 recent visits)
  10. Tumblr: how blogging should be (384 recent visits)

Similar Entries

Stats

0 unique visits since Nov10 '05

Recent Referrers (click)

Syndicate

Advertisements