Search
 
SCRIPT & CODE EXAMPLE
 

PHP

check website ssl certificate using php

$ip = gethostbyname($domain);
$url = "http://" . $domain;
$orignal_parse = parse_url($url, PHP_URL_HOST);
$get = stream_context_create(array("ssl" => array("capture_peer_cert" => TRUE)));
$read = stream_socket_client("ssl://" . $orignal_parse . ":443", $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $get);
$cert = stream_context_get_params($read);
$result = (!is_null($cert)) ? true : false;
Comment

PREVIOUS NEXT
Code Example
Php :: remove special characters in php 
Php :: php get first character of each word 
Php :: insert multiple rows laravel 
Php :: count with condition laravel 
Php :: laravel blade check if request url matches 
Php :: autoload_namespaces.php failed to open stream: Permission denied 
Php :: ubuntu apache php version 
Php :: phpmyadmin centos 8 
Php :: shortcode in wp 
Php :: multiple submit button in php 
Php :: test post request laravel 
Php :: same column in and where laravel query 
Php :: html to pdf in php 
Php :: laravel get data from request 
Php :: wordpress how to match password 
Php :: date time format php 
Php :: how to install laravel 
Php :: define constructor in trait php 
Php :: php path in ubuntu 
Php :: add-basic-controller-imports 
Php :: php explode end 
Php :: country code validation in laravel 
Php :: cara membuat looping table dengan php 
Php :: laravel parse markdown 
Php :: luhn algorithm 
Php :: laravel e commerce full project 
Php :: dispatch job with queue name in laravel 
Php :: autoloader php 
Php :: wp rest api acf fields 
Php :: laravel vue browser cache auto clear 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =