

![]() |
| ![]() | |||||||
|
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Platinum Lifetime Member Name: Peter Last Online: Yesterday 03:30 PM iTrader: (30) Join Date: Aug 2005
Posts: 1,571
DNF$: 0 Location: Canada
Country: | Some basic php tips... 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: Code: <?
include("menu.php");
?>
Code: <?php
$today = date("Y");
?>
Copyright © <?=$today?> My Website.
|
| | |
| Sponsored Ads |
| | #2 (permalink) |
| The Evil Mod Name: Ed Last Online: Yesterday 09:18 PM iTrader: (36) Join Date: Dec 2007
Posts: 8,355
DNF$: 63 Location: South Florida
Country: | 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.
__________________ Get a Parked.com account today! What's on Draggar's mind? Find out at http://www.draggar.net I'm always looking for dog breed domains |
| | |
| | #3 (permalink) | |
| Platinum Lifetime Member Name: Peter Last Online: Yesterday 03:30 PM iTrader: (30) Join Date: Aug 2005
Posts: 1,571
DNF$: 0 Location: Canada
Country: | Quote:
Also, this is obviously not just for .php, you just need to know the proper syntax for the language of choice... | |
| | |
| | #4 (permalink) |
| The Evil Mod Name: Ed Last Online: Yesterday 09:18 PM iTrader: (36) Join Date: Dec 2007
Posts: 8,355
DNF$: 63 Location: South Florida
Country: | 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). ![]()
__________________ Get a Parked.com account today! What's on Draggar's mind? Find out at http://www.draggar.net I'm always looking for dog breed domains |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |