how to insert data into tally using php?

后端 未结 5 1867
灰色年华
灰色年华 2021-01-03 04:07

i have fetch data from tally erp 9.0 using this code,

\'.
                           \'
\'.
5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-03 04:31

    
    
    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
    Item List  | 

提交回复
热议问题