Dash on BitcoineasyPHP problem.

Kamilk91

New member
Hi guys, that is my fist post, so big hello to you.

I have a problem, anyway im sorry for my english language mistakes.

I have VPS with localhost Dash. I started dashd -daemon with configuration

rpcuser=xxx
rpcpassword=xxx
rpcport=8332
daemon=1
listen=1

then i checked if dash-cli getbalance working. And it looks good, i have 14 connections.

next, i had installed php5, and mysql, on my localhost (the same vps what Dashd). I have downloaded from github library called "BitcoinEasyPHP" and i pasted it on my "/bin/www/html" catalouge. I generated new file named "test.php" with "<?php echo hello; ?> to check working of php. It works.
Next i generated new file called "getinfo.php" with code:

<?php
required('easybitcoin.php');
$bitcoin = new Bitcoin("xxx","xxx","localhost","8332");
$getinfo = $bitcoin->getinfo();
print_r('$getinfo');

?>

When im starting page it is only blank page, no loops, no data.. What did i wrong?

Edit: i added server=1 and situation is the same.
 
Last edited:
now ip is allowed for my website: viralownia.pl/testxx.php you can check it.. still working only in cURL
 
What if run in console: php getinfo.php?
Add error_reporting(-1); to script. Any warnings/notices?
$ php 1.php
Array
(
[result] => Array
(
[version] => 120104
[protocolversion] => 70206
[walletversion] => 61000
[balance] => 0
[privatesend_balance] => 0
[blocks] => 649792
[timeoffset] => 0
[connections] => 32
[proxy] =>
[difficulty] => 96482.124227788
[testnet] =>
[keypoololdest] => 1478282233
[keypoolsize] => 1001
[paytxfee] => 0
[relayfee] => 0.0001
[errors] =>
)

[error] =>
[id] => 1
)
 
Add error_reporting(-1); to script. Any warnings/notices?
I added this, you can look now.

How you do that?!?! :
$ php 1.php
Array
(
[result] => Array
(
[version] => 120104
[protocolversion] => 70206
[walletversion] => 61000
[balance] => 0
[privatesend_balance] => 0
[blocks] => 649792
[timeoffset] => 0
[connections] => 32
[proxy] =>
[difficulty] => 96482.124227788
[testnet] =>
[keypoololdest] => 1478282233
[keypoolsize] => 1001
[paytxfee] => 0
[relayfee] => 0.0001
[errors] =>
)

[error] =>
[id] => 1
)
 
Last edited:
PHP Notice: Use of undefined constant test35 - assumed 'test35' in /HEREISLOCATION/public_html/testxx.php on line 2


Notice: Use of undefined constant test35 - assumed 'test35' in /HEREISLOCATION/public_html/testxx.php on line 2

test35

its only log with my testing "echo test35"


whem in testing 'easydash.php' its empty response.


when i deleted "echo test35" its still empty response, but im waiting 10-15 seconds to get empty response.
 
Last edited:
It's useless for me to look at webpage, you need to run your file on your server in console (just run php filename.php) to see it output and make some conclusions.
okay i got i changed code, and i made print_r($dash). its answer me "connection timed out.
 
Back
Top