URL が次の場合:
もし: http://www.imvu-e.com/products/dnr/
その時: http://www.imvu-e.com/products/dnr/
もし: http://www.imvu-e.com/products/dnr/?
その時: http://www.imvu-e.com/products/dnr/
もし: http://www.imvu-e.com/products/dnr/index.php
その時: http://www.imvu-e.com/products/dnr/
もし: http://www.imvu-e.com/products/dnr/page.php?var=2
その時: http://www.imvu-e.com/products/dnr/
もし: http://www.imvu-e.com/products/dnr
その時: http://www.imvu-e.com/products/
これどうやってするの?
私の試み:
print "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['REQUEST_URI'])."/";