Bitcoin Forum

Other => Beginners & Help => Topic started by: hamburger on August 02, 2011, 09:09:52 PM



Title: bitcoind.exe + (easyphp) or (Server2Go) or (xampp)
Post by: hamburger on August 02, 2011, 09:09:52 PM
Hi,

Is there anyone who can give me step by step instructions on how to set up bitcoind.exe on an xp machine and spesifically how to use the bitcoin.conf file.

While https://en.bitcoin.it/wiki/Running_Bitcoin#Windows is helpful, I do not fully comprehend the information due to the language barrier.

When this is done, I would then like to access bitcoin using php running on either easyphp or Server2Go or xampp to verify send and received transaction and everything else that would be nice to know.

You are welcome to send me a pm.

Thank you,

Hamburger


Title: Re: bitcoind.exe + (easyphp) or (Server2Go) or (xampp)
Post by: Chick on August 02, 2011, 09:18:14 PM
Hi,

Is there anyone who can give me step by step instructions on how to set up bitcoind.exe on an xp machine and spesifically how to use the bitcoin.conf file.

While https://en.bitcoin.it/wiki/Running_Bitcoin#Windows is helpful, I do not fully comprehend the information due to the language barrier.

When this is done, I would then like to access bitcoin using php running on either easyphp or Server2Go or xampp to verify send and received transaction and everything else that would be nice to know.

You are welcome to send me a pm.

Thank you,

Hamburger

Put bitcoind in a directory. Open up command prompt and navigate to the directory. Then type in 'bitcoind.exe -server'. Done.

Now you need to setup the bitcoin.conf to accept json api commands.

Code:
rpcuser=asdf
rpcpassword=asdf

#fill in this if connections aren't coming from localhost, this will make bitcoind listen to commands sent from that address
#rpcallowip=

I have no idea what easyphp or server2go is. They look like pre-configured lamp stacks to me. Now, download the json-rpc library and you can send a command to bitcoind like this:

Code:
<?php
require_once('the_library.php');
$bitcoin = new jsonRPCClient('http://asdf:asdf@127.0.0.1:8332');

//Same as bitcoind.exe getinfo
echo $bitcoin->getinfo();


Title: Re: bitcoind.exe + (easyphp) or (Server2Go) or (xampp)
Post by: hamburger on August 03, 2011, 08:11:32 AM
Hi,

Great, sometimes less info on a page mean a lot more!

The only thing I had to change was

Code:
print_r($bitcoin->getinfo());

instead of

Code:
echo $bitcoin->getinfo();

echo just returned a json array.

Thank you,

Hamburger