标签:字符串 product code abs request 框架 tin 问号 host
假设被请求的URL是 http://example.com/admin/index.php/product?id=100, 你可以像下面描述的那样获取URL的各个部分:
/admin/index.php/product?id=100, 此URL不包括host info部分。http://example.com/admin/index.php/product?id=100, 包含host infode的整个URL。http://example.com, 只有host info部分。/product, 这个是入口脚本之后,问号之前(查询字符串)的部分。id=100,问号之后的部分。/admin, host info之后, 入口脚本之前的部分。/admin/index.php, 没有path info和查询字符串部分。example.com, URL中的host name。标签:字符串 product code abs request 框架 tin 问号 host
原文地址:http://www.cnblogs.com/pcx105/p/6739504.html