| Current Path : /home/happyrenas/fun/public/api/ |
Linux webd005.cluster105.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 |
| Current File : /home/happyrenas/fun/public/api/diag.php |
<?php
header('Content-Type: text/plain; charset=utf-8');
echo "PHP_VERSION=" . PHP_VERSION . "\n";
echo "PHP_SAPI=" . PHP_SAPI . "\n\n";
$paths = [
'bootstrap' => __DIR__ . '/_bootstrap.php',
'tarifs' => __DIR__ . '/tarifs.php',
'vendor_autoload' => __DIR__ . '/../../../vendor/autoload.php',
'config_php' => __DIR__ . '/../../../config/config.php',
'service_account_json' => __DIR__ . '/../../../config/service-account.json',
'cache_dir' => __DIR__ . '/../../../storage/cache',
'ratelimit_dir' => __DIR__ . '/../../../storage/ratelimit',
];
foreach ($paths as $k => $p) {
echo $k . " => " . $p . "\n";
echo " exists=" . (file_exists($p) ? 'YES' : 'NO') . "\n";
echo " readable=" . (is_readable($p) ? 'YES' : 'NO') . "\n";
if (is_dir($p)) echo " writable=" . (is_writable($p) ? 'YES' : 'NO') . "\n";
echo "\n";
}