ν‹°μŠ€ν† λ¦¬ λ·°

PHP

PHP μ„œλ²„κ°μ²΄ $_SERVER[]

🩷 슈 🧑 2008. 5. 20. 13:06
728x90
SMALL
$_SERVER['DOCUMENT_ROOT'] = ν˜„μž¬ μ‚¬μ΄νŠΈκ°€ μœ„μΉ˜ν•œ μ„œλ²„μƒμ˜ μœ„μΉ˜ => /webapp/include
$_SERVER['HTTP_ACCEPT_ENCODING'] = 인코딩 받식 => gzip, deflate
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = μ–Έμ–΄ => ko
$_SERVER['HTTP_USER_AGENT'] = μ‚¬μ΄νŠΈ μ ‘μ†ν•œ μ‚¬μš©μž ν™˜κ²½ => Mozilla/4.0(compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.0.3705
$_SERVER['REMOTE_ADDR'] = μ‚¬μ΄νŠΈ μ ‘μ†ν•œ μ‚¬μš©μž IP => xxx.xxx.xxx.xxx
$_SERVER['SCRIPT_FILENAME'] = μ‹€ν–‰λ˜κ³  μžˆλŠ” μœ„μΉ˜μ™€ 파일λͺ… => webapp/include/index.php
$_SERVER['SERVER_NAME'] = μ‚¬μ΄νŠΈ 도메인 => www.crazy-cupid.com
$_SERVER['SERVER_PORT'] = μ‚¬μ΄νŠΈκ°€ μ‚¬μš©ν•˜λŠ” 포트 => 80
$_SERVER['SERVER_SOFTWARE'] = μ„œλ²„μ˜ μ†Œν”„νŠΈμ›¨μ–΄ ν™˜κ²½ => Apache/1.3.23 (Unix) PHP/4.1.2 mod_fastcgi/2.2.10 mod_throttle/3.1.2 mod_ssl/2.8.6 OpenSSL/0.9.6c
$_SERVER['GATEWAY_INTERFACE'] = cGI 정보 => CGI/1.1
$_SERVER['SERVER_PROTOCOL'] = μ‚¬μš©λœ μ„œλ²„ ν”„λ‘œν† μ½œ => HTTP/1.1
$_SERVER['REQUEST_URI'] = ν˜„μž¬νŽ˜μ΄μ§€μ˜ μ£Όμ†Œμ—μ„œ 도메인 μ œμ™Έ =>  /index.php?user=???&name=???
$_SERVER['PHP_SELF'] = ν˜„μž¬νŽ˜μ΄μ§€μ˜ μ£Όμ†Œμ—μ„œ 도메인과 λ„˜κ²¨μ§€λŠ” κ°’ μ œμ™Έ =/ index.php
$_SERVER['APPL_PHYSICAL_PATH'] = ν˜„μž¬νŽ˜μ΄μ§€μ˜ μ‹€μ œ 파일 μ£Όμ†Œ => D:\webapp/
728x90
LIST
λŒ“κΈ€
곡지사항
μ΅œκ·Όμ— 올라온 κΈ€
μ΅œκ·Όμ— 달린 λŒ“κΈ€
Total
Today
Yesterday
링크
Β«   2025/04   Β»
일 μ›” ν™” 수 λͺ© 금 ν† 
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
κΈ€ 보관함
250x250