TAG: Web Development

Ramblings from my life - especially web development with Laravel, WordPress and PHP.

Navigation

Laravel 5.2 Authentication Custom User Providers

Introduction If you haven't heard of Laravel before, check it out - it's a modern PHP framework that makes it a breeze to develop web applications. As part of Laravel, it includes an Authentication service which lets users login to your application. The Laravel Auth service is incredibly powerful, allowing you to configure different "guards" to protect different areas of your site - e.g. a user area & admin area. It's also very flexible as…

WordPress With Load Balancer SSL Termination

If attempt to run WordPress in a load balanced environment with SSL terminated on the load balancer(s), you may find requests to your site get stuck in a redirect loop. This is due to WordPress not trusting forwarded SSL by default. To solve this issue, you simply need to add the following snippet to your wp-config.php file: if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') { $_SERVER['HTTPS']='on'; } To be slightly more secure, you might…

Forwarded SSL with the PHP Happyr LinkedIn API client

Sometimes when working with a library you hit a problem that isn't covered in the documentation and you need to roll up your sleeves and get stuck in to find solve the issue. I had to do this recently when working a project. This project needed to make use of the LinkedIn API - so an API library was needed. Happyr/LinkedIn-API-client appeared to do everything that was needed, and looked easy to use. After a…

Testing in Internet Explorer

Internet Explorer. You either love it or hate it. If your a web developer like myself, the chances you are to hate it. With three different versions currently in use (that all render pages slightly differently) and a fourth in development, it can often be a nightmare getting your page to look and function correctly in all versions of IE, as well as the other major browsers. IE6 has a notorious reputation for being the worst…