<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);

echo "PHP OK: " . phpversion() . "<br>";

// DB Test
$conn = new mysqli('localhost', 'jewellersbd_erp', 'তোমার_password', 'jewellersbd_erp');
if ($conn->connect_error) {
    echo "❌ DB Error: " . $conn->connect_error;
} else {
    echo "✅ DB Connected OK";
    $conn->close();
}

// Key file test
$key = '/home/jewellersbd/public_html/erp.jewellersbd.com/backup/jewelerserp-backup-1c40222356ae.json';
echo "<br>Key file: " . (file_exists($key) ? "✅ Found" : "❌ Not found");

// cURL test
echo "<br>cURL: " . (function_exists('curl_init') ? "✅ OK" : "❌ Missing");

// OpenSSL test  
echo "<br>OpenSSL: " . (function_exists('openssl_sign') ? "✅ OK" : "❌ Missing");
?>
