info.php 檔案,內容如下:<?php
phpinfo();
?>
htdocs、www、public_html)。https://localhost/info.php(或對應域名/IP)。顯示紫色標題「PHP Version x.x.x」及完整設定資訊表格,包含:
$_SERVER、php.ini 路徑AddType application/x-httpd-php .php 或 FastCGI 設定。display_errors=Off 且有語法錯誤,查看錯誤日誌。驗證完成後,立即刪除 info.php,避免洩露伺服器敏感資訊。