PHP 8.2.31
Preview: update_certs.php Size: 407 B
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/tourmaster/include/stripe/update_certs.php

#!/usr/bin/env php
<?php
chdir(dirname(__FILE__));

set_time_limit(0); // unlimited max execution time

$fp = fopen(dirname(__FILE__) . '/data/ca-certificates.crt', 'w+');

$options = array(
  CURLOPT_FILE    => $fp,
  CURLOPT_TIMEOUT =>  3600,
  CURLOPT_URL     => 'https://curl.haxx.se/ca/cacert.pem',
);

$ch = curl_init();
curl_setopt_array($ch, $options);
curl_exec($ch);
curl_close($ch);
fclose($fp);

Directory Contents

Dirs: 2 × Files: 4

Name Size Perms Modified Actions
data DIR
- drwxr-xr-x 2024-05-28 15:48:43
Edit Download
lib DIR
- drwxr-xr-x 2024-05-28 15:48:44
Edit Download
905 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
6.99 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
20.21 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
407 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).