php - Can't write the content to a file using rpc xml -
i have content want write file called bk_strategy-ptr-to-real-file.h
. here 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 possible write file using xml rpc?
you don't write files using xml-rpc, communications protocol. use php or asp write files. have fine:
$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 file .h extension, should not .xml, or maybe .txt or .php depending on want response next.
Comments
Post a Comment