i have fetch data from tally erp 9.0 using this code,
\'.
\'\'.
Import Data
All Masters
{$group_name}
Yes
{$item_name}
{$group_name}
Primary Batch
Primary Batch
Main Location
20190120
0.000 NOS
0.000
0.000/NOS
XML;
//var_dump($res_str);die;
$url = "http://localhost:8000/";
//setting the curl parameters.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
// Following line is compulsary to add as it is:
curl_setopt($ch, CURLOPT_POSTFIELDS,
"xmlRequest=" . $res_str);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 300);
$data = curl_exec($ch);
if(curl_errno($ch)){
var_dump($data);
} else {
$msg = $data;
}
curl_close($ch);
}
?>
Tally