title: how to insert data into tally using php?
body: <p>i have fetch data from tally erp 9.0 using this code,</p>
  
  <pre><code>&lt;?php
      $requestXML = '&lt;ENVELOPE&gt;'.
                             '&lt;HEADER&gt;'.
                             '&lt;TALLYREQUEST&gt;Export Data&lt;/TALLYREQUEST&gt;'.
                             '&lt;/HEADER&gt;'.
                             '&lt;BODY&gt;'.
                             '&lt;EXPORTDATA&gt;'.
                             '&lt;REQUESTDESC&gt;'.
                             '&lt;REPORTNAME&gt;Daybook&lt;/REPORTNAME&gt;'.
                             '&lt;STATICVARIABLES&gt;'.
                             '&lt;SVEXPORTFORMAT&gt;$$SysName:XML&lt;/SVEXPORTFORMAT&gt;'.
                             '&lt;/STATICVARIABLES&gt;'.
                             '&lt;/REQUESTDESC&gt;'.
                             '&lt;/EXPORTDATA&gt;'.
                             '&lt;/BODY&gt;'.
                             '&lt;/ENVELOPE&gt;';
  
   $server = '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);
  }
  </code></pre>
  
  <p>But my problem is how to push(insert) data into Tally ERP 9.0 using php(curl).</p>