Bitcoin Forum
December 13, 2024, 09:06:09 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: arggg; HTTP callback for bitcoin address's  (Read 503 times)
BitvoinVender (OP)
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile
May 16, 2013, 11:42:12 PM
Last edit: May 17, 2013, 02:58:53 AM by BitvoinVender
 #1

test HTTP Post callback
http://www.bitcoinmonitor.net/help/#httpcallback


looks like
http://requestb.in/1jq58n51?inspect





So Ive i got some help on IRC, and i got this far.


Code:
<?php
$c 
file_get_contents('php://input'); 
$c json_decode($ctrue); 
//echo $c['txhash'];


//$txhash = $_POST['txhash'];
$entry $c->signed_data['txhash'];


//mysql $entry into table
?>



I have no idea what on earth php://input is about


But I know $c is an array and stores 'array' in my sql, so close right? but how do i get the txhash out of it?
BitvoinVender (OP)
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile
May 16, 2013, 11:51:41 PM
Last edit: May 17, 2013, 12:10:22 AM by BitvoinVender
 #2

Code:
<?php
$c 
file_get_contents('php://input'); 
$ac json_decode($ctrue); 
$entry $ac['signed_data']['txhash'];
?>


should be closer right?

BitvoinVender (OP)
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile
May 17, 2013, 12:10:03 AM
 #3

*added bounty
BTCoder
Newbie
*
Offline Offline

Activity: 14
Merit: 0



View Profile
May 17, 2013, 12:13:08 AM
 #4

What are you trying to create?
BitvoinVender (OP)
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile
May 17, 2013, 12:28:57 AM
 #5

I want to be informed when bitcoin is sent to one of my address's and store that in a mysql table
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!