Vancouver Website Design

Complete Website Management

Full Email Newsletter Campaigns

Customized HTML & PHP Programming
Dedicated and Professional Customer Service


PHP Redirects and How to Use Them

Usually a PHP redirect is much more reliable than other form of redirects like HTTP redirect or JavaScript based redirects.

A PHP Redirect automatically transfers a web user from one URL to another. For example, typing foo.com in the browser automatically transfers the user to another URL bar.com.

The PHP Redirect command:

  header("location: [some-url]");

Replace [some-url] with the URL where you want the redirection to take place.

For example,

header("location: ./version2/index.html");
=>redirect to "index.html" page in subfolder called "version2"

Read more: PHP Redirects and How to Use Them

PHP Includes 101 - Basic Introduction

PHP includes can save webmasters literally hundreds of hours coding and recoding every time they need to make a simple change to a sites, some of which can have hundreds of pages!

For simplicity sake, lets say you have a website with 10 or so pages, and you want to update the navigation. You don't want the hassle of updating every single page. That's where includes come in handy.

Your basic include will look like this.

<?php include ( 'includes/navigation.php' ); ?>

That's it! What I typically do is design a page as usual, then begin breaking sections up into includes. To use this effectively:

Read more: PHP Includes 101 - Basic Introduction

Click the link below to view a summary of the services that D-Mack Media offers. The document will open in a new window and is in Adobe® PDF® format that you can save and print. If you need the free Adobe Reader, click the Adobe logo Adobe Reader
D-Mack Media Services (233kb)...