Archive - September, 2010

Crazy Times

Business First

These last few months have been a roller-coaster. After leaving Sandstorm Design in June, I have only one word to describe how I have been and that would be BUSY!
I worked several short projects at a few different interactive agencies, a trading firm, and starting after labor day I will be full-time at Sears Holdings Corporation.

include vs. include_once vs. require vs. require_once

include (‘sponsor_links.php’);
If the file sponsor_links is present in the current folder, it will be included ( way may want it to appear both – at the top and at the bottom).

include_once (‘statistics.php’);
If the file statistics.php is present, it means we want statistics for the page. Otherwise, we don’t want statistics. Deleting statistics.php will not affect the main program.

require (‘navigation.php’);
We may want to include the navigational links both both at the top and the bottom at the page. If navigation.php is not present, the main program will stop running and an error message will be displayed.

require_once (‘google_adsense_top.php’);
Because a page has only one top, only one instance of google_adsense_top.php will be included. If google_adsense_top.php is not present, the main program will stop running and an error message will be displayed.