kaidine
11-22-2011, 05:48 AM
Hi all,
This is my first shot at using PHP and cURL. I am getting the error "unexpected T_DNUMBER" on line 4 and I don't know why.
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.example.com/gateway_cvn/xmlpayment.asp");
curl_setopt($ch, CURLOPT_POST, "<?xml version="1.0" encoding="ISO-8859-1"?><root><CustomerID>1</CustomerID></root>");
curl_exec($ch);
curl_close($ch);
?>
Does anyone know why?
This is my first shot at using PHP and cURL. I am getting the error "unexpected T_DNUMBER" on line 4 and I don't know why.
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.example.com/gateway_cvn/xmlpayment.asp");
curl_setopt($ch, CURLOPT_POST, "<?xml version="1.0" encoding="ISO-8859-1"?><root><CustomerID>1</CustomerID></root>");
curl_exec($ch);
curl_close($ch);
?>
Does anyone know why?