<?php
echo "<h1>PHP上传配置检查</h1>";
echo "<table border='1' cellpadding='10'>";
echo "<tr><th>配置项</th><th>当前值</th><th>建议值</th></tr>";
echo "<tr><td>upload_max_filesize</td><td>" . ini_get('upload_max_filesize') . "</td><td>1G</td></tr>";
echo "<tr><td>post_max_size</td><td>" . ini_get('post_max_size') . "</td><td>1G</td></tr>";
echo "<tr><td>max_execution_time</td><td>" . ini_get('max_execution_time') . "</td><td>300</td></tr>";
echo "<tr><td>max_input_time</td><td>" . ini_get('max_input_time') . "</td><td>300</td></tr>";
echo "<tr><td>memory_limit</td><td>" . ini_get('memory_limit') . "</td><td>512M</td></tr>";
echo "</table>";

echo "<h2>如何修改配置</h2>";
echo "<p>编辑 php.ini 文件，修改以下配置：</p>";
echo "<pre>upload_max_filesize = 1G
post_max_size = 1G
max_execution_time = 300
max_input_time = 300
memory_limit = 512M</pre>";
?>