Author

Topic: arggg; HTTP callback for bitcoin address's (Read 500 times)

legendary
Activity: 1498
Merit: 1000
Does your hosing server allow you to run file_get_contents? Alot of shared hosting block that function.

php://input is a function that returns the raw body of a call to your script.
newbie
Activity: 46
Merit: 0
I want to be informed when bitcoin is sent to one of my address's and store that in a mysql table
newbie
Activity: 14
Merit: 0
What are you trying to create?
newbie
Activity: 46
Merit: 0
*added bounty
newbie
Activity: 46
Merit: 0
Code:
$c file_get_contents('php://input'); 
$ac json_decode($ctrue); 
$entry $ac['signed_data']['txhash'];
?>


should be closer right?

newbie
Activity: 46
Merit: 0
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:
$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?
Jump to: