FiveFeet

When using PHP's copy() to copy from SSL/HTTPS, you might get this error:

Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /path-to/php-file.php on line 1000

Here is a fix for it:

$options = array(
	"ssl" => array(
	"verify_peer"      => false,
	"verify_peer_name" => false,
	),
);
$copy = copy($url, $local_file, stream_context_create( options));