To print the date in the following format:
2008-06-27 use:
<?php echo date("Y-m-d"); ?>
This is useful for automatically updating the date in the copyright section of a web page:
Copyright © <?php echo date("Y"); ?> Painted Pixels.
Once this is in place on a web page, the year will be adjusted saving yourself the job of having to do it manually.
For other date formats see the PHP Manual.
Posted in PHP by Jan on June 27, 2008 at 1:26 am | Comments Off
Don’t you just love CSS? Yeah!!
It’s CSS Theme Week at SitePoint. Don’t miss the CSS tutorials. So far they have had:
- Nifty Navigation Tricks Using CSS
- Breaking Out of the Box With CSS Layouts
- Warning: This Secret CSS Technique Will Surprise You!
- Fancy Form Design Using CSS
- CSS Positioning Properties At-A-Glance Guide
Now all I need is some time to read them!
Posted in CSS by Jan on June 26, 2008 at 2:39 am | Comments Off
I’ve been thinking of pagination recently and looked to the web to see what inspirations there were there. I have bookmarked these sites:
Hopefully, I will now be inspired to improve the pagination on my own sites.
Posted in Web Development by Jan on June 22, 2008 at 11:14 pm | 1 Comment »
Here are my favourite extensions for Firefox:
- British English Dictionary – enables me to check my spelling for typos when filling in forms online.
- ColorZilla – Advanced Eyedropper, ColorPicker, Page Zoomer and other colorful goodies.
- DownThemAll – Great for downloading lots of files.
- HTML Validator – adds HTML validation inside Firefox.
- IE View – Enables me to view pages in IE by just right clicking on the Firefox browser window and selecting View This Page in IE.
- Opera View – the same as above but with Opera.
- Palette Grabber – extracts a color palette for the current page and exports it to a Photoshop/Illustrator color palette file
- Sage – a lightweight RSS and Atom feed reader.
- Screengrab – makes it easy to save a web-page as an image. With it, you can save anything that you can see in a browser window – from a small selection, to a complete page.
- Web Developer – various web developer tools I would find it difficult to do without.
- Password Exporter – allows you to export and import your saved passwords.
- Scrapbook - helps you to save Web pages and manage the collection. Great when you come across a great piece of information you wish to keep handy.
What are your favourite Firefox extensions?
Posted in Web Development by Jan on June 21, 2008 at 1:55 pm | Comments Off
I found this great utility which enables you to check a web page in multiple browsers:
Browsershots
It is very useful for checking pages in browsers you don’t have installed on your computer.
Posted in Web Development by Jan on June 20, 2008 at 12:28 pm | Comments Off
Some great css templates as a starting point for you own design:
Posted in CSS by Jan on June 19, 2008 at 3:23 pm | Comments Off