我对LURL和魔法有问题。
for different reasons i cannot turn magic_quotes off. But i do need to disable this feature when I create a CURL POST request.
在这项《欧洲禁止杀伤人员地雷行动计划》中,我通过一个包含XML和xml开标的变量,例如:
$xml_request = <?xml version="1.0"?><SaleRequest> <CustomerData> <Email>alex@virtuman.com</Email> <CustomerData> <SaleRequest> ;
在我提出治疗员额请求后:
$url="https://my.secureserver.com/parsexmlscript.cgi";
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "xml=".$xml_request);
curl_setopt ($ch, CURLOPT_HEADER, 0);
$result = curl_exec ($ch);
curl_close ($ch);
因此:在安全服务器上收到的申请——首批开端正像:
<?xml version="1.0"?>
(with version attribute is with magic quotes) after this xml parser dies telling me that XML document is not well formed.
是否有任何办法,只能用一种文字,提出这一职位要求?
或者是否有其他办法绕过它?
help!