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;
Also in PHP:
- create laravel app
- date and time function in php
- How to create WordPress users programmatically
- date - Manual - PHPwww.php.net › manual › function.date.phpdate ( string $form
- add pagination to wordpress
- Allowed memory size of 1610612736 bytes exhausted
- collection methods laravel
- check if key exist in array
- doctrine getrepository findby
- disable register auth laravel
- How to Use Laravel
- date between query in codeigniter
- create date from string php
- cache and compile file clear laravel
- create new seeder laravel
- compile php 7.4 from source in ubuntu 20
- echo class php
- convert unix timestamp to datetime php
- base decode php
- ->with('success','msj')
- error reporting off php
- $_server url
- ddev laravel setup
- download laravel composer