Add support for, and default to, https for PHP