<?php
// İlgili URL
    $url = 'https://upcitemdb.com/upc/8695054925014';

// cURL oturumu başlat
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

// İstek yap
    $response = curl_exec($ch);

// cURL hatalarını kontrol et
    if (curl_errno($ch)) {
        echo 'cURL hatası: ' . curl_error($ch);
        exit;
    }

// cURL oturumunu kapat
    curl_close($ch);

// HTML içeriği işleme
    $start = strpos($response, '<tr><td>EAN-13:</td><td>');
    $end = strpos($response, '</td></tr>', $start);
    $ean13 = substr($response, $start, $end - $start);

    $start = strpos($response, '<tr><td>Country of Registration:</td><td>');
    $end = strpos($response, '</td></tr>', $start);
    $country = substr($response, $start, $end - $start);

// Sonuçları yazdır
    echo "EAN-13: $ean13 <br>";
    echo "Country of Registration: $country <br>";

?>