Hello guys, months ago I was writing a PHP script using walletnotify for storing transactions in a database. Now bitcoind at notify pop ups the system console for a second but it doesn't execute any...
After many tests I ended up using a very simple script for testing purposes:
test.php<?php
$fp=fopen("C:/test.txt","a");
$out=$argv[1]."\n";
fwrite($fp,$out);
?>
bitcoin.confwalletnotify = C:/php/php.exe -f C:/test.php %s
debug.log2015-11-22 12:30:56 AddToWallet e20f0f5eb3b1d68fc1f33440cfc419a7e03719f645b292fec07211a56e6c185b new
2015-11-22 12:30:56 runCommand error: system(C:/php/php.exe -f C:/test.php e20f0f5eb3b1d68fc1f33440cfc419a7e03719f645b292fec07211a56e6c185b) returned 1
Which actually works if ran manually through cmd but not by bitcoind when gets new transactions, just the console flashes and then byebye... Is my walletnotify cmd string correct?
SOLVED: had to use '\' instead of '/' damn it