Home   |   Recommendations   |   Firefox resources   |   TWP Auctions   |   Forum   |   Contact
The Website Professionals

The Website Professionals

Real world webmaster resources.

TWP Auctions - the free eBay script TWP Probe RSS feed Forum

PHP stuff

Create PHP dates in the future

The date 2 weeks from today will be: March 25, 2010

Here’s how to display a date in the future (say 2 weeks from today):

<?php
$future = mktime(0,0,0,date("m"),date("d")+14,date("Y"));
$mydate = date("F j, Y", $future);
echo $mydate;
?>

Make your PHP pretty

Another nice little PHP tool is PHPFormatter, where you can paste in your messy PHP and it will format it to several preset styles (including PEAR). This is really a great tool for those of us that write really messy code, and then can’t work it out a few days later.

Post PHP code in Wordpress

I found a great website that will transform PHP into html for pasting into Wordpress, forums, or anywhere. It’s here.

Featured marketing products for March 2010:
Use a different photo for every cardFree Business Cards Plus 14-Day Free Shipping $50+

Copyright © 2010 The Website Professionals - All rights reserved
Links | Privacy policy