Bitcoin Forum
December 08, 2016, 04:28:16 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Easy way to show current balance on the website using PHP?  (Read 3086 times)
Mahkul
Sr. Member
****
Offline Offline

Activity: 420


Be silent, or be silenced.


View Profile WWW
January 19, 2011, 11:54:44 PM
 #1

I would like to display my current account balance on my website (kind of like: So far X amount of BTC has been donated, where X obviously shows the balance of an address) using PHP, but I want to extract this from a Bitcoin wallet residing on a different machine than the web-server. Is it possible and if so, what's the easiest way to do this? Also, is it possible to show the overall state of my entire wallet using PHP, but again connecting to a remote machine (I know this is not a smart thing to do, but just curious)?


My problem is I have no way of installing Bitcoin application on my hosting account, so I need to extract this info from my own bitcoin application residing on my PC. Thanks in advance for any help with this.

Bitalo.com coming soon!

1MAHKULzqZb4evFFg9157LvnJhJQQbeYo7
1481171296
Hero Member
*
Offline Offline

Posts: 1481171296

View Profile Personal Message (Offline)

Ignore
1481171296
Reply with quote  #2

1481171296
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481171296
Hero Member
*
Offline Offline

Posts: 1481171296

View Profile Personal Message (Offline)

Ignore
1481171296
Reply with quote  #2

1481171296
Report to moderator
1481171296
Hero Member
*
Offline Offline

Posts: 1481171296

View Profile Personal Message (Offline)

Ignore
1481171296
Reply with quote  #2

1481171296
Report to moderator
tcatm
Sr. Member
****
Offline Offline

Activity: 337


View Profile
January 20, 2011, 12:39:11 AM
 #2

You could use BBE's getreceivedbyaddress: http://blockexplorer.com/q/getreceivedbyaddress/$address
semyazza
Sr. Member
****
Offline Offline

Activity: 339


View Profile
January 20, 2011, 10:43:29 PM
 #3

1)SSH tunnel from your hosting account, run the bitcoin balance command, parse and display.

2)Another way would be to set up a simple http server that supports cgi on the home computer and write a simple script to pull data from the client and display it.

3)Simple script that gets information from bitcoin client and then uploads a text file to your hosting server with the updated information.
Mahkul
Sr. Member
****
Offline Offline

Activity: 420


Be silent, or be silenced.


View Profile WWW
January 20, 2011, 11:09:19 PM
 #4

1)SSH tunnel from your hosting account, run the bitcoin balance command, parse and display.

2)Another way would be to set up a simple http server that supports cgi on the home computer and write a simple script to pull data from the client and display it.

3)Simple script that gets information from bitcoin client and then uploads a text file to your hosting server with the updated information.

Thanks for taking the effort to write this - it will definitely help me!

Bitalo.com coming soon!

1MAHKULzqZb4evFFg9157LvnJhJQQbeYo7
TheBarMan
Newbie
*
Offline Offline

Activity: 28

777Coin - The Exciting Bitcoin Casino


View Profile
June 09, 2016, 07:36:39 PM
 #5

Hi, im taking this info for my future website.

i don know yet how add this to a mark list. just to the watchlist but nothing like markers or something like that.

this message is for help me to find it.

★☆★ 777Coin - The Exciting Bitcoin Casino! ★☆★
jaydipmodhwadia
Sr. Member
****
Offline Offline

Activity: 308

I have been hacked. Read Sig


View Profile
June 09, 2016, 07:46:00 PM
 #6

Hi, im taking this info for my future website.

i don know yet how add this to a mark list. just to the watchlist but nothing like markers or something like that.

this message is for help me to find it.

You could press 'Watch' at the bottom to save it to your watchlist which is available in the top left of the website (just under your username)

I have been hacked. I have changed my password. I will not trade unless i give a signed message. I have not sebt any messages or threads since the 6th of July. Be cautious when trading with anyone from this account. I will not be trading until the 20th of the following month
TheBarMan
Newbie
*
Offline Offline

Activity: 28

777Coin - The Exciting Bitcoin Casino


View Profile
June 09, 2016, 08:04:32 PM
 #7

Hi, im taking this info for my future website.

i don know yet how add this to a mark list. just to the watchlist but nothing like markers or something like that.

this message is for help me to find it.

You could press 'Watch' at the bottom to save it to your watchlist which is available in the top left of the website (just under your username)


hi, i did it, but if any one put a Reply the list appears empty.

★☆★ 777Coin - The Exciting Bitcoin Casino! ★☆★
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!