Six PHP Session Tutorials to help when using sessions:
- PHP session tutorial – a clear basic introduction from PHP F1
- Managing Users with PHP Sessions and MySQL - building a logging in system from Sitepoint
- Basic PHP Session – from about.com
- Using Sessions in PHP – building a membership system
- Session Control and Cookies
- Sessions and cookies: Adding state to a stateless protocol – at PHP Freaks
Tags: PHP, sessions
Posted in PHP by Jan on September 10, 2009 at 3:22 pm | No Comments »
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 | No Comments »