Cannot write content to file using rpc xml

I have content that I want to write to a file called bk_strategy-ptr-to-real-file.h . Here is the code:

 echo $content = $header.$parameters.$footer; $myFile = "/home/vikas/hft/common/internal/config/trader/master/bk_strategy-ptr-to-real-file.h"; $fh = fopen($myFile, 'w') or die("can't open file"); fwrite($fh, $content); fclose($fh); 

Is it possible to write a file using xml rpc?

+4
source share
1 answer

You do not write files using xml-rpc, it is a communication protocol. You use your php or asp to write files. Are you OK:

 $myFile = "/home/vikas/hft/common/internal/config/trader/master/bk_strategy-ptr-to-real-file.h"; $fh = fopen($myFile, 'w') or die("can't open file"); fwrite($fh, $content); fclose($fh); 

But why the file is a .h extension if it will not be .xml or maybe .txt or .php, depending on what you want to do with the subsequent response.

0
source

All Articles