如何获取主机地址?例如,我的网站位于此处:http://example.org/index/news/ 我只想提取http://example.org/。
我想问一下ZF功能。我知道 $_SERVER['HTTP_HOST'] 但我正在寻找原生的东西。
php zend-framework http-host
http-host ×1
php ×1
zend-framework ×1