how to insert data into tally using php?

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

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

\'.
                           \'
\'.
5条回答
  •  心在旅途
    2021-01-03 04:42

        
    Name

    
            
              
    Import Data
    Vouchers SAVH -1 20130401 f6c10ce3-4a15-42b8-961e-143a512a9e62-00000009 Receipt 5 '.$name.' Default Accounting Voucher View No No No No 20130401 No No No No No No 20 No No No Yes No No No No No No No No No No No No No 9 177657027231784 200000.00 -1 '.$name.' No No No Yes No -1 Bank of Maharashtra Yes No No Yes Yes -200000.00 20130401 20130401 Warje Cheque/DD AXIS '.$name.' 50026 38ROUrdV00QEKOhl No -1 -200000.00 12 SAVH Maharashtra f6c10ce3-4a15-42b8-961e-143a512a9e62 SAVH Maharashtra 12 SAVH Maharashtra f6c10ce3-4a15-42b8-961e-143a512a9e62 SAVH Maharashtra
    '; /* Actual code for importing goes here */ $server = 'http://localhost:9000'; $headers = array( "Content-type: text/xml" ,"Content-length: ".strlen($requestXML) ,"Connection: close" ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $server); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $requestXML); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $data = curl_exec($ch); if(curl_errno($ch)) { print curl_error($ch); echo " something went wrong..... try later"; } else { echo " request accepted"; print $data; curl_close($ch); } } ?>

    Try this, it will be working.... give your port in "$server" which is in tally configuration....

提交回复
热议问题