Shane Rutter BlogMy place on the web

  • Home
  • About Me
  • Contact Me
  • Privacy Policy

PHP

Laravel, time zones and carbon

  • 26th June 2017
  • /
  • Hints, Tips & Techniques, Laravel, PHP
  • /
  • No Comments

Laravel defaults to storing all dates in UTC format, this is highly recommended as UTC time never changes unlike other time zones which have daylight savings. It is best practice to store and read dates in UTC, and then convert UTC to your required time zone for the user interface. Great article below of a
Continue reading...

  • db dev development hints laravel php ui

PHP: Show PHP errors messages for debugging code

  • 3rd August 2012
  • /
  • PHP
  • /
  • No Comments

Need to easily debug some php code? simple add the following code to your script to enable PHP error reporting and display error messages. This allows you to quickly debug without making configuration changes to servers PHP configuration.
Continue reading...

  • conflict debug dev development howto php programming

PHP: Random sequence function

  • 24th December 2010
  • /
  • PHP
  • /
  • No Comments

Here is a function I have created which is used to generate a sequence of random numbers, letters and symbols. I currently use it on a number of projects including http://passworded.co.uk which is a simple password generator.
Continue reading...

  • Functions php programming
Shane Rutter
Copyright 2025 © Shane Rutter