Files
wevads-platform/scripts/check.php
2026-02-26 04:53:11 +01:00

32 lines
1.1 KiB
PHP
Executable File

<?php
header('Content-Type: text/plain');
echo "=== CONFIGURATION PHP POUR ADX Wevads ===\n\n";
echo "upload_max_filesize: " . ini_get('upload_max_filesize') . "\n";
echo "post_max_size: " . ini_get('post_max_size') . "\n";
echo "memory_limit: " . ini_get('memory_limit') . "\n";
echo "max_execution_time: " . ini_get('max_execution_time') . "\n";
echo "max_input_time: " . ini_get('max_input_time') . "\n\n";
// Vérification
$upload_bytes = return_bytes(ini_get('upload_max_filesize'));
$post_bytes = return_bytes(ini_get('post_max_size'));
echo "=== VERIFICATION ===\n";
echo "Pour 500 000 Ko (500 Mo):\n";
echo "upload_max_filesize: " . ($upload_bytes >= 500*1024*1024 ? "✓ OK" : "✗ TROP FAIBLE") . "\n";
echo "post_max_size: " . ($post_bytes >= 500*1024*1024 ? "✓ OK" : "✗ TROP FAIBLE") . "\n";
function return_bytes($val) {
$val = trim($val);
$last = strtolower($val[strlen($val)-1]);
$val = (int)$val;
switch($last) {
case 'g': $val *= 1024;
case 'm': $val *= 1024;
case 'k': $val *= 1024;
}
return $val;
}
?>