开发者

get a domain address with asp

开发者 https://www.devze.com 2023-01-23 16:10 出处:网络
how do I get the domain of an address to the asp? Suppose we have the following addresses: example.com 开发者_如何学Cexample.com/my

how do I get the domain of an address to the asp?

Suppose we have the following addresses:

example.com

开发者_如何学Cexample.com/my

example.com/news/nacional

example.com/news/naciona/nada-como-um-dia.html

I'd like to get just the domain, in this case o. ..

"example.com"

I take the field as an address to the asp?

Thanks!


Try this: Request.servervariables("SERVER_NAME")

Torbjørn

0

精彩评论

暂无评论...
验证码 换一张
取 消