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 error messages when PHP error reporting is disabled

  • 3rd August 2012
  • /
  • Guides, Tutorials & How To, PHP
  • /
  • No Comments

Adding the following code to the top of your PHP script will allow that page to show PHP error messages and override the php.ini defaults. This is a good and simple way to quickly debug a page without having to adjust your main PHP config (which isn’t always possible).
Continue reading...

  • conflict 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 2021 © Shane Rutter