Skip to content

Instantly share code, notes, and snippets.

@unclego
unclego / class-get-available-ip-adresses.php
Created April 2, 2017 14:37
Get array of avaiable ip's fitered by criteria (eg. exclude local interfaces)
/**
* Rested on centos 5, 6, 7
* Requires yum install net-tools on centos 7
*/
class GetAvailableIpAdresses {
/**
* @var $excludeIp array of IP's to exclude in IPV4 format eg. 127.0.0.1
*/
private static $excludeIp;
/**
<?php
/*
Plugin Name: WP SMTP PHP 5.6 fix
Version: 1.0
Author: unclego
Author URI: https://profiles.wordpress.org/unclego/
License: GPL2
Description: FIX for PHP Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed when using PHP 5.6+ and mail server with self signed certificate
*/