Post
Topic
Board Development & Technical Discussion
Problem with bitcoin command in php
by
nextblast
on 30/10/2014, 10:43:39 UTC
In windows, calling bitcoin CLI
Quote
Error parsing JSON:[{ txid : d5dc... , vout :1, address : miEVe... , account :  , scriptPubKey : 76a9..., amount :0.18, confirmations :211, priority :37.98}]

I suspect its because of the escapeshellarg or something else, which messed up with double quotes in the JSON under windows.

I'm from .net background, and not familiar with PHP.

Is my guess right, and can any guru out here please help me?

Thanks!


[Edit]
OK, figured it out. It's indeed the double quote problem.

Added a few str_replace(), and manipulated some \"...