本地主机/的index.php?proof_xml =%3CAuthProof%3E%3CTime%3E2018 +月+ 03 + 16%3A42%3A06%3C%2FTime%3E%3CVEReqProof%3E%3CMessage + ID%3D%22c12Wrq0yBXr3nLA2d3u1%22% 3E%3CVEReq%3E%3Cversion%3E1.0.2%3C%2Fversion%3E%3CMerchant%3E%3CacqBIN%3E518670%3C%2FacqBIN%3E%3CmerID%3E5586000012131%3C%2FmerID%3E%3C%2FMerchant%3E%3CBrowser% 3E%3CdeviceCategory%3E0%3C%2FdeviceCategory%3E%3Caccept%3E%2A%2F%2A%3C%2Faccept%3E%3CuserAgent%3EMozilla%2F5.0 +%28X11%3B +的Linux + i686的%3B + RV%3A49 0.0%29 +壁虎%2F20100101 +火狐%2F49.0 + SeaMonkey的%2F2.46%3C%2FuserAgent%3E%3C%2FBrowser%3E%3C%2FVEReq%3E%3C%2FMessage%3E%3C%2FVEReqProof%3E %3CVEResProof%3E%3CMessage + ID%3D%22c12Wrq0yBXr3nLA2d3u1%22%3E%3CVERes%3E%3Cversion%3E1.0.2%3C%2Fversion%3E%3CCH%3E%3Cenrolled%3EY%3C%2Fenrolled%3E%3C%2FVERes %3E%3C%2FMessage%3E%3C%2FVEResProof%3E%3C%2FAuthProof%3E
我希望它使用GET方法打印它。还有一些属性,但我只需要打印proof_xml。
echo $_GET['proof_xml'];
我希望其输出为:
%3CAuthProof%3E%3CTime%3E2018 +月+ 03 + 16%3A42%3A06%3C%2FTime%3E%3CVEReqProof%3E%3CMessage + ID%3D%22c12Wrq0yBXr3nLA2d3u1%22%3E%3CVEReq%3E%3Cversion% 3E1.0.2%3C%2Fversion%3E%3CMerchant%3E%3CacqBIN%3E518670%3C%2FacqBIN%3E%3CmerID%3E5586000012131%3C%2FmerID%3E%3C%2FMerchant%3E%3CBrowser%3E%3CdeviceCategory%3E0%3C% 2FdeviceCategory%3E%3Caccept%3E%2A%2F%2A%3C%2Faccept%3E%3CuserAgent%3EMozilla%2F5.0 +%28X11%3B +的Linux + i686的%3B + RV%3A49.0%29 +壁虎%2F20100101 +火狐%2F49.0 + SeaMonkey的%2F2.46%3C%2FuserAgent%3E%3C%2FBrowser%3E%3C%2FVEReq%3E%3C%2FMessage%3E%3C%2FVEReqProof%3E%3CVEResProof%3E%3CMessage + ID %3D%22c12Wrq0yBXr3nLA2d3u1%22%3E%3CVERes%3E%3Cversion%3E1.0.2%3C%2Fversion%3E%3CCH%3E%3Cenrolled%3EY%3C%2Fenrolled%3E%3C%2FVERes%3E%3C%2FMessage%3E %3C%2FVEResProof%3E%3C%2FAuthProof%3E
答案 0 :(得分:0)
如果您的意思是希望对其进行网址编码,请尝试使用flex-wrap
。有关详细信息,请参阅http://php.net/manual/en/function.urlencode.php。
答案 1 :(得分:0)
这是因为php.ini发生的。所以我把它放到php.ini文件suhosin.get.max_value_length = 3000
中,一切都按照我想要的方式开始工作。