2009. 12. 3. 19:16 PROGRAMMING
[JSP/PHP] JSP vs PHP 서버변수 모음
PHP 변수 > JSP 클래스.메소드

SERVER_NAME > request.getServerName()
SERVER_SOFTWARE > request.getServletContext().getServerInfo()
SERVER_PROTOCOL > request.getProtocol()
SERVER_PORT > request.getServerPort()
REQUEST_METHOD > request.getMethod()
PATH_INFO > request.getPathInfo()
PATH_TRANSLATED > request.getPathTranslated()
SCRIPT_NAME, PHP_SELF > request.getServletPath()
DOCUMENT_ROOT > request.getRealPath("/")
QUERY_STRING > request.getQueryString()
REMOTE_HOST > request.getRemoteHost()
REMOTE_ADDR > request.getRemoteAddr()
AUTH_TYPE > request.getAuthType()
REMOTE_USER > request.getRemoteUser()
CONTENT_TYPE > request.getContentType()
CONTENT_LENGTH > request.getContentLength()
HTTP_ACCEPT > request.getHeader("Accept")
HTTP_USER_AGENT > request.getHeader("User-Agent")
HTTP_REFERER > request.getHeader("Referer")

댓글을 달아 주세요

최근에 올라온 글

최근에 달린 댓글