echo $_SERVER['PHP_SELF'],'
'; //本頁位址
echo $_SERVER['HTTP_REFERER'],'
'///連結至目前頁的前頁
echo $_SERVER['SCRIPT_FILENAME'],'
'; //目前腳本的絕對路徑
echo $_SERVER['REMOTE_ADDR'],'
'; 鎠'QUERY_STRING'],'
';//查詢query的字串,?後面的部分
echo $_SERVER['DOCUMENT_ROOT'],'
'; //文檔根目錄
echo $_SERVER['SERVER_ADDR'],'
';//伺服器的ip