Bitcoin Forum
December 12, 2024, 08:29:38 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind.exe + (easyphp) or (Server2Go) or (xampp)  (Read 962 times)
hamburger (OP)
Full Member
***
Offline Offline

Activity: 241
Merit: 107



View Profile WWW
August 02, 2011, 09:09:52 PM
 #1

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

Datacoin : DHZ6H91fsDoBHbdqED3ysCJJ2TUh3zRMZD
Krugercoin : Yz3A9sTMp2yh5QLuAL8YQyvS5PdjHRHkkf
Chick
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
August 02, 2011, 09:18:14 PM
 #2

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();

hamburger (OP)
Full Member
***
Offline Offline

Activity: 241
Merit: 107



View Profile WWW
August 03, 2011, 08:11:32 AM
 #3

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

Datacoin : DHZ6H91fsDoBHbdqED3ysCJJ2TUh3zRMZD
Krugercoin : Yz3A9sTMp2yh5QLuAL8YQyvS5PdjHRHkkf
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!