If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!I just wanted to share a couple of simple tips that may help out some of those who are new to developing sites using .php
One of the best tips I think is to use includes as often as you can. I always use an include for my main navigation menu and footer, and sometimes for my header, too... This allows you to make updates easily in one place, and saves a lot of time. It also reduces the chances of making a mistake and having conflicting information on your site...
A basic include in php looks like this:
Another thing you see a lot is a footer that has a copyright and a date, usually just the year, and it is out of date... Here is an easy way to avoid that problem:Code:<? include("menu.php"); ?>
Anyway, these are just a couple of simple tips I thought I would share...Code:<?php $today = date("Y"); ?> Copyright © <?=$today?> My Website.
I LOVE the include() command.
It is the best for editing headers, footers, link bars, etc..
Plus, all it has to be is a plain old html page (with no <html><head><body> tags). Whenever you look at my sites each page is a minimum of 3-4 pages, some up to 6 or 7 and does not have a noticeable impact on load speeds, even 56K.
Save the wolves - join The Wolf Army today!
Please follow the rules or suffer the wrath of Thor's Hammer.
Used correctly, PHP and CSS can make excellent sites, very professional looking, easy to maintain, and no need for "web creation" software (but I will admit, DreamWeaver is great for editing large sites).![]()
Save the wolves - join The Wolf Army today!
Please follow the rules or suffer the wrath of Thor's Hammer.
Bookmarks