[ Tags :: php ]

$_SERVER[]: PHP_SELFとREQUEST_URIとSCRIPT_NAMEと(改)

$_SERVER["PHP_SELF"] Windows XAMPP
(PHP5.2.4/Apache 2.0)
CentOS5
(PHP5.1.6/Apache 2.0)
XREA Linux?
(PHP4.4.8/Apache 1.3.37)
$_SERVER["REQUEST_URI"]
$_SERVER["SCRIPT_NAME"]
http://hoge.com/example/Link /example/index.php /example/index.php /example/index.php
/example/ /example/ /example/
/example/index.php /example/index.php /example/index.php
http://hoge.com/example/index.phpLink /example/index.php /example/index.php /example/index.php
/example/index.php /example/index.php /example/index.php
/example/index.php /example/index.php /example/index.php
http://hoge.com/example/index.php?a=testLink /example/index.php /example/index.php /example/index.php
/example/index.php?a=test /example/index.php?a=test /example/index.php?a=test
/example/index.php /example/index.php /example/index.php
http://hoge.com/example/index.php/dir/testLink /example/index.php/dir/test /example/index.php/dir/test /example/index.php/dir/test
/example/index.php/dir/test /example/index.php/dir/test /example/index.php/dir/test
/example/index.php /example/index.php /example/index.php/dir/test

うーん、PHPのヴァージョン違いのせいか、Apacheのほうか・・・。

php SCRIPT_NAME REQUEST_URI PHP_SELF $_SERVER

— posted by たか at 08:02 pm   pingTrackBack [0]

T: Y: ALL: Online:
ThemeSwitch
Created in 0.0036 sec.
prev
2018.11
next
        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  
 
blogBar
Firefox3 Meter