Like my work? If you're looking for a Bracknell Web Design Agency then drop us a line at 'Nine Four' and we can hook up for a chat.

Automating an availability statement in PHP Wednesday July 16, 2008

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.

<p 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.

Posted in: Web development

 
Play online poker at Full Tilt Poker and PokerStars. The best online poker rooms still open to US players. welike-Poker.com provides unbiased and critical online poker room reviews.
Leave your comments
name:
email: Gravatar enabled.
http://
Format your message with Textile.
Remember

related

recently

The 10 most recent articles.