Post
Topic
Board Trading Discussion
Re: PHP martingale bot for satoshiDICE
by
payb.tc
on 06/02/2013, 10:26:42 UTC
I don't think that will work as when I just run it for 30 seconds I get a repeat of this once it's done

Warning: fopen(http://...@127.0.0.1:8332/): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in C:\xampp\htdocs\jsonRPCClient.php on line 132

Run the script on the command line:

  php bot.php

not from a web server.

Try using my script and the json-rpc PHP file that's with it.  It has better error handling.

  https://github.com/dooglus/sdbot

or first try the bare minimum:

Code:
require_once('jsonRPCClient.php');
$b = new jsonRPCClient('http://KJTetc:MyRpcpass@localhost:8332/');
print_r($b->getinfo());