By James Thompson, on October 27th, 2009%
This is a handy script for managing an out of office message on your website. I find this very useful on business websites when you’re tired of making that one little change to let people know when the office will be shut down. With about 15 minutes of extra work, you only need to do it . . . → Read More: Tidbit Tuesday on PHP: Holiday Notices for Business Sites
By James Thompson, on October 9th, 2009%
I think the date function is extremely useful. It gives your programs an awareness of WHEN they are. You can do some pretty cool things like calculate this date from that date, make a calendar, or store information about when an action was taken.
Function and Syntax
string date(string $format [, int $timestamp ])
Manual Entry
http://php.net/manual/en/function.date.php
Notes and . . . → Read More: PHP Function Friday: date
By James Thompson, on October 2nd, 2009%
Including files makes it really easy to NOT duplicate code. It’s great for creating headers and footers for websites, or using it in the inverse: make the header and footer in one file, and include the content. You can also store site configuration files, functions, and repeating content, etc.
Function and Syntax
include(<file path>);
Manual Entry
http://php.net/manual/en/function.include.php
Notes and Use
Includes . . . → Read More: PHP Function Friday: include
Recent Comments