Shane Rutter BlogMy place on the web

  • Home
  • About Me
  • Contact Me

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

A PHP developer, web developer, software developer, RC and airsoft enthusiast

Social

Categories

  • Computers
    • General
    • Guides, Tutorials & How To
    • Knowledge Base
    • Servers
  • Electronics
    • General
    • Hacks
    • Hardware
    • Projects
    • Tutorials & How To
  • Programming & Development
    • General
    • Hints, Tips & Techniques
    • Laravel
    • MySQL
    • PHP
    • Wordpress
  • RC
    • General
    • How To
    • Project
      • Defender D90 (Environment Agency
    • Review
  • The Void

Latest

  • Posts
  • Comments
  • Tags
  • Linux: Killall command 31st August 2017
  • Automatic MySQL database backups and zipping on windows with a bat file 23rd August 2017
  • Local website & services remotely accessible via secure tunnels with ngrok 6th August 2017
  • ESP8266 low-cost Wi-Fi full stack TCP/IP MCU (Arduino Compatible) 20th July 2017
  • An easy music player using Pi MusicBox and Raspberry PI 3rd July 2017
  • Shane Rutter
    Glad you found it helpful.
  • Malcolm
    Thanks for the very clear explanation. A colleague...
  • Shane Rutter
    Glad it was helpful for you :)
  • Jill
    Oh, my goodness! This saved me a TON of work!! Th...
  • ECN
    Hi! I have many files in .txt, and each file co...
RCremote controlhobbytruckshowtoascenderscalecrawld90land roverdefenderdevelopmentprogrammingphpLinuxjavascriptunixwindowscrawlingelectric
Shane Rutter
Copyright 2018 © Shane Rutter