Title: formatting listtransactions bitcoind PHP Post by: slimofftb on February 23, 2013, 06:58:56 AM im trying to show transactions for a specific account in bitcoind. But with
Code: <?php It appears all garbled on the webpage. Is there any way to fix that? Title: Re: formatting listtransactions bitcoind PHP Post by: gweedo on February 23, 2013, 07:13:33 AM well that is cause print_r will show it in a more of debug format with the type and stuff like that. If you want to do...
Code: <?php now with that you can do this Code: <?php Title: Re: formatting listtransactions bitcoind PHP Post by: slimofftb on February 23, 2013, 07:26:06 AM code doesnt seem to work :(
Title: Re: formatting listtransactions bitcoind PHP Post by: gweedo on February 23, 2013, 07:33:17 AM code doesnt seem to work :( Can you give me the error? just tested it and works for me Title: Re: formatting listtransactions bitcoind PHP Post by: slimofftb on February 23, 2013, 05:29:58 PM i got it lol there wasnt an issue with the code you posted. i was trying to do something like this.....
Code: <?php thank you so much!! Title: Re: formatting listtransactions bitcoind PHP Post by: slimofftb on February 24, 2013, 05:36:07 AM so if i was to want to send coins to an address i would use code like this?
Code: <?php I have a feeling i have this all wrong ??? ??? Title: Re: formatting listtransactions bitcoind PHP Post by: gweedo on February 24, 2013, 05:50:04 AM no that looks right
Title: Re: formatting listtransactions bitcoind PHP Post by: slimofftb on February 24, 2013, 06:04:56 AM you sure...
i just tested it and it didnt work.... ??? >:( Title: Re: formatting listtransactions bitcoind PHP Post by: gweedo on February 24, 2013, 06:10:16 AM so if i was to want to send coins to an address i would use code like this? Code: <?php I have a feeling i have this all wrong ??? ??? Code: <?php try that it should work now Title: Re: formatting listtransactions bitcoind PHP Post by: slimofftb on February 24, 2013, 06:49:28 AM when i use a variable like $address for the sendfrom it doesnt work.
if i put just an account name there instead of using a variable it works.... hmmmmm... is there something i should be doing when i input the variable?? ??? Error msg shows that its null when i use a variable..... Working code Code: <?php Not working code Code: <?php Title: Re: formatting listtransactions bitcoind PHP Post by: gweedo on February 24, 2013, 06:55:23 AM Then check where that post variable is coming from and make sure you have the correct input name in where the post name is coming from.
Title: Re: formatting listtransactions bitcoind PHP Post by: slimofftb on February 24, 2013, 07:37:50 AM now its working with the variable but it is giving error now... idk why hmmm here is my code....
Code: <?php and i get an error Code: Warning: fopen(http://...@xxxx:8332/): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /opt/lampp/htdocs/login1/jsonRPCClient.php on line 132 Alls i did was change the code.... hmmmm tip for you if this gets solved ??? ;) Title: Re: formatting listtransactions bitcoind PHP Post by: gweedo on February 24, 2013, 07:52:42 AM It can't connect to your bitcoind, or your username and password isn't correct.
Title: Re: formatting listtransactions bitcoind PHP Post by: slimofftb on February 24, 2013, 07:55:40 AM everything else using bitcoind on the site works fine.... connects like it should.... like listing transactions for accounts and balances....
Title: Re: formatting listtransactions bitcoind PHP Post by: gweedo on February 24, 2013, 07:58:37 AM Do this
Code: $bitcoin->walletpassphrase($password, 60) then after the function Code: $bitcoin->walletlock(); |