You are viewing a single comment's thread from:

RE: 使用PHP查询STEEM区块链 / Using PHP to query the STEEM blockchain

in #cn7 years ago (edited)

Thanks for this how to, i wanted to give it a try for the SEEMPI project im working on and i have installed Curl and php and saved your code in index.php but when loading the file it displays code instead of the output:

The code that on page after loading index.php is starting with:

ch = curl_init(); curl_setopt($this->ch, CURLOPT_URL, 'https://steemd.steemit.com');..............

........ending with:
');
print_r($steemd->exec(get_chain_properties,[]));
print_r($steemd->get_account('oflyhigh'));
echo('
'); //unset($steemd); ?>

Any suggestions, what am i doing wrong ?

Sort:  

1.php

<?
echo("Hello World!");
?>

2.php

<?php
echo("Hello World!");
?>

Try above two example php files
If 2.php works well, then change my script as it. (Add php after <? )

If both of them don't work, you need to check your HTTP server setting, add php support to it.

Loading...

Coin Marketplace

STEEM 0.19
TRX 0.25
JST 0.038
BTC 97484.70
ETH 3417.93
USDT 1.00
SBD 3.04