时间:2021-07-01 10:21:17 帮助过:2人阅读
里的内容是什么也可以HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: application/xml;charset=UTF-8 Content-Length: 662 Date: Wed, 28 Mar 2012 02:04:43 GMT Connection: closesign 1B6DF27CC81E98EEBE78F5E4765F2E09 timestamp 20120328100423 v 1.0 sign_v 1 method allinpay.card.cardwithproductinfo.get app_key test format xml password 5arHL6zxgecGKGQ nqBVQPRth3zEuJMO card_id 12345678 25
无效签名
$string = <<sign 1B6DF27CC81E98EEBE78F5E4765F2E09 timestamp 20120328100423 v 1.0 sign_v 1 method allinpay.card.cardwithproductinfo.get app_key test format xml password 5arHL6zxgecGKGQ nqBVQPRth3zEuJMO card_id 12345678 25
无效签名 XML; echo ''; $xml = simplexml_load_string($string); var_dump($xml);
------解决方案--------------------
你可以用file_get_contents('aa.xml');然后正则获取。