PHP getting full server name including port number and protocol

前端 未结 9 1465
暗喜
暗喜 2020-12-16 12:00

In PHP, is there a reliable and good way of getting these things:

Protocol: i.e. http or https Servername: e.g. localhost Portnumber: e.g. 8080

9条回答
提交回复
热议问题