PHP/주소창 읽기


ex)
http://hyacinth.byus.net/moniwiki/wiki.php/Blog/2012-11?action=blog&value=605f3dd6a510d56c15a3a6a348461475#BlogComment


$_SERVER["REQUEST_URI"]; -> /moniwiki/wiki.php/Blog/2012-11?action=blog&value=605f3dd6a510d56c15a3a6a348461475
$_SERVER["PHP_SELF"] -> /moniwiki/wiki.php/php/주소창 읽기
$_SERVER["PATH_INFO"]; -> /Blog/2012-11
$_SERVER["SCRIPT_FILENAME"]; -> /home1/hyacinth/public_html/moniwiki/wiki.php
$_SERVER["DOCUMENT_ROOT"]; -> /home1/hyacinth/public_html
$_SERVER["SCRIPT_NAME"]; -> /moniwiki/wiki.php
$_SERVER["HTTP_HOST"]; -> hyacinth.byus.net

이 글에는 0 개의 댓글이 있습니다.