Viewing a response to: @techtek/re-oflyhigh-php-steem-using-php-to-query-the-steem-blockchain-20170811t203533736z
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.
author | oflyhigh |
---|---|
permlink | re-techtek-re-oflyhigh-php-steem-using-php-to-query-the-steem-blockchain-20170812t021855878z |
category | cn |
json_metadata | {"tags":["cn"],"app":"steemit/0.1"} |
created | 2017-08-12 02:19:03 |
last_update | 2017-08-12 02:19:03 |
depth | 2 |
children | 1 |
last_payout | 2017-08-19 02:19:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.688 HBD |
curator_payout_value | 0.227 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 296 |
author_reputation | 6,311,207,566,498,817 |
root_title | "使用PHP查询STEEM区块链 / Using PHP to query the STEEM blockchain" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 11,559,693 |
net_rshares | 273,113,450,256 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
thing-2 | 0 | 272,447,130,698 | 100% | ||
techtek | 0 | 666,319,558 | 100% |
@oflyhigh , Thank you very much! This is the first time i get Steem data back in to my project, very nice and exciting and Thanks thanks thanks! Adding <?php to the script solved the issue (2.php) Few questions you maybe know the answer to / can help to point me to to right direction? <br> Question 1a. - How to strip the 168 lines that get echode back, for example the value of [name], [sbd_balance], [balance], [post_count] Question 1b. -How to add a username input field and button to index.php to activate and update the user from question 1a Question 2 (Woud be awesome if you can make it work, it probably needs a bit more coding/extra file(?) but im not sure, maybe it can be solved with curl and in a more simple way. ) - On a new upvote i want to turn on a connected LED, the LED i can turn on and off with this line of code in the index.php: exec ("gpio write 0 1"); exec ("gpio write 0 0"); For the project im working on i want to be able to switch on and off the connected LED light and this is working now with a button from within index.php but it would be very nice if the LED can be switched on "1" and off "0"automatically with new upvotes (, replies and or transfer) on a specified account (1b) What i can give you in return: 1. Please add in a HTML-comment with your name and Steemit account and i will keep those in the project index.php to reference back to you. 2. I will make a banner and big thank you in my next project update post 3. i will transfer 3 SBD to show my gratitude to you if you can fix question 1a, 1b, and 2 (3 SBD is maybe not that much but for me 25 day old user it is quite much, if you dont agree with the amount please suggest a other amount) Please help me a bit with the above questions i will be very thankful to you. Will you light up my day ?
author | techtek |
---|---|
permlink | re-oflyhigh-re-techtek-re-oflyhigh-php-steem-using-php-to-query-the-steem-blockchain-20170812t080949076z |
category | cn |
json_metadata | {"tags":["cn"],"users":["oflyhigh"],"app":"steemit/0.1"} |
created | 2017-08-12 08:10:06 |
last_update | 2017-08-12 08:10:30 |
depth | 3 |
children | 0 |
last_payout | 2017-08-19 08:10:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,820 |
author_reputation | 28,283,249,927,543 |
root_title | "使用PHP查询STEEM区块链 / Using PHP to query the STEEM blockchain" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 11,578,308 |
net_rshares | 677,066,647 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
techtek | 0 | 677,066,647 | 100% |