17 번 글: [Apache-PHP] ForceType, Normal, Action |
글쓴이: 산이
[홈페이지]
|
글쓴날: 2003년 01월 25일 21:36:20 토(저녁) |
조회: 4159 |
URLs
1. ForceType : http://localhost/tmp/test/ddd.html?str=string
2. Normal : http://localhost/tmp/test.php?str=string
3. Action : http://localhost/tmp/test.txt?str=string
1. ForceType : 'test' file to PHP(no extension) with
directive
URL : http://localhost/tmp/test/ddd.html?str=string
$_SERVER["DOCUMENT_ROOT"] = /usr/local/apache/htdocs
$_SERVER["SCRIPT_FILENAME"] = /usr/local/apache/htdocs/tmp/test
$_SERVER["QUERY_STRING"] = str=string
$_SERVER["REQUEST_URI"] = /tmp/test/ddd.html?str=string
$_SERVER["SCRIPT_NAME"] = /tmp/test
$_SERVER["PATH_INFO"] = /ddd.html
$_SERVER["PATH_TRANSLATED"] = /usr/local/apache/htdocs/ddd.html
$_SERVER["PHP_SELF"] = /tmp/test/ddd.html
$_SERVER["argv"] =
$_SERVER["argv"]["0"] = str=string
$_SERVER["argc"] = 1
2. normal
URL : http://localhost/tmp/test.php?str=string
$_SERVER["DOCUMENT_ROOT"] = /usr/local/apache/htdocs
$_SERVER["SCRIPT_FILENAME"] = /usr/local/apache/htdocs/tmp/test.php
$_SERVER["QUERY_STRING"] = str=string
$_SERVER["REQUEST_URI"] = /tmp/test.php?str=string
$_SERVER["SCRIPT_NAME"] = /tmp/test.php
$_SERVER["PATH_TRANSLATED"] = /usr/local/apache/htdocs/tmp/test.php
$_SERVER["PHP_SELF"] = /tmp/test.php
$_SERVER["argv"] =
$_SERVER["argv"]["0"] = str=string
$_SERVER["argc"] = 1
3. Action text/plain /bin/action.php
URL : http://localhost/tmp/test.txt?str=string
$_SERVER["DOCUMENT_ROOT"] = /usr/local/apache/htdocs
$_SERVER["REDIRECT_QUERY_STRING"] = str=string
$_SERVER["REDIRECT_URL"] = /tmp/test.txt
$_SERVER["SCRIPT_FILENAME"] = /usr/local/apache/htdocs/bin/action.php
$_SERVER["QUERY_STRING"] = str=string
$_SERVER["REQUEST_URI"] = /tmp/test.txt?str=string
$_SERVER["SCRIPT_NAME"] = /bin/action.php
$_SERVER["PATH_INFO"] = /tmp/test.txt
$_SERVER["PATH_TRANSLATED"] = /usr/local/apache/htdocs/tmp/test.txt
$_SERVER["PHP_SELF"] = /bin/action.php/tmp/test.txt
$_SERVER["argv"] =
$_SERVER["argv"]["0"] = str=string
$_SERVER["argc"] = 1
/bin/action.php/tmp/test.txt?str=string
|
이전글 : [PHP] class of OGG
다음글 : Re: 관련 문서
|
from 61.254.75.40
JS(Redhands)Board 0.4 +@
|