<?php echo $_SERVER['PHP_SELF']; //PHP檔名 echo $_SERVER['SERVER_NAME']; //伺服器名稱 echo $_SERVER['REQUEST_METHOD']; //資料傳遞 echo $_SERVER['REMOTE_ADDR']; //IP位置 echo $_SERVER['SCRIPT_FILENAME']; //檔案位置 ?>