Nathan Pitmanhello, my name is
nathan pitman.

Automating an availability statement in PHP Jul 16. 08

We have a small statement on the Nine Four website which advises new clients as to our current availability.

In general we need between 3 and 4 weeks notice to fit any significant new work in, so rather than continually update the availability statement or explain that we need 3 or 4 weeks lead time, I just used the PHP date function.

<class="availability">We're available to work on new projects from the <?php echo date('jS of F Y', strtotime(date("d-m-Y").'+21 days' ) ); ?>.</p>

Simple really but I just thought I’d share.

blog comments powered by Disqus