Phil Sturgeon
  • Home
  • About
  • Consulting
Sign in Subscribe
Phil Sturgeon

Phil Sturgeon

Software Engineer gone ferril. Digital nomad since 2018 (bike/van). Now dedicated to woodland creation and restoration, as co-founder of UK climate chairty Protect Earth.

How to: Support multiple production environments in CodeIgniter

To get this working is very easy. Constants can be seen all the way through CodeIgniter and can be set almost anywhere. To keep things neat and logical we will put this code into application/config/constants.php. For a simple 2 environment switch you can use the following: define(
Phil Sturgeon Jan 29, 2009
How to: Clean username URL's in CodeIgniter

How to: Clean username URL's in CodeIgniter

When most people start work on this, they think about using routes. You could do it this way, but then every time you enter a url such as http://example.com/controller then router would send the controller name off to check if it is a username. It's
Phil Sturgeon Jan 19, 2009
First Post

First Post

There are several reasons for starting this blog. Firstly as a way to keep track of all my tips, tutorials, code snippets and various web projects. I like to be active in the world of web development and have been knocking out sites and libraries for years. Secondly I wanted
Phil Sturgeon May 17, 2008

Subscribe to Phil Sturgeon

Don't miss out on the latest news. Sign up now to get access to the library of members-only articles.
  • Sign up
Phil Sturgeon © 2025. Powered by Ghost