php - url
2020-02-28 本文已影响0人
xueyueshuai
// http://127.0.0.1:9011/index.php/h5/liveshare/share?a=b&c=d#aaa
// http $_SERVER['REQUEST_SCHEME']
// 127.0.0.1:9011 $_SERVER['HTTP_HOST']
// 127.0.0.1 $_SERVER['SERVER_ADDR']
// 9011 $_SERVER['REMOTE_PORT']
// $_SERVER['REQUEST_URI'] /index.php/h5/liveshare/share?a=b&c=d
// $_SERVER['REQUEST_METHOD'] GET
// $_SERVER['QUERY_STRING'] a=b&c=d
// $_SERVER['DOCUMENT_URI'] /index.php/h5/liveshare/share
// /index.php $_SERVER['SCRIPT_NAME']