Skip to content

Instantly share code, notes, and snippets.

View jirisolc's full-sized avatar

Jiří Šolc jirisolc

View GitHub Profile
@jirisolc
jirisolc / https_fopen_without_cert_check.php
Last active October 14, 2023 18:44
PHP fopen() to https:// without cert check
<?php
$context = stream_context_create(
array (
'ssl' = > array (
'verify_peer' => false,
'verify_peer_name' => false
)
)
);