sun's longitude:243 28 36.55 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/read.php:소스보기  
알파문서
자주 잊어먹거나, 메모해 둘 필요성이 있는 팁이나 문서, 기타 등등
[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
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 +@

|글쓰기| |답장쓰기| |수정|
|이전글| |다음글| |목록보기|
인쇄용 

apache lighttpd linuxchannel.net 
Copyright 1997-2024. linuxchannel.net. All rights reserved.

Page loading: 0.01(server) + (network) + (browser) seconds