create account

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

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @techtek/re-oflyhigh-php-steem-using-php-to-query-the-steem-blockchain-20170811t203533736z

· @oflyhigh ·
$0.91
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.
👍  ,
properties (23)
authoroflyhigh
permlinkre-techtek-re-oflyhigh-php-steem-using-php-to-query-the-steem-blockchain-20170812t021855878z
categorycn
json_metadata{"tags":["cn"],"app":"steemit/0.1"}
created2017-08-12 02:19:03
last_update2017-08-12 02:19:03
depth2
children1
last_payout2017-08-19 02:19:03
cashout_time1969-12-31 23:59:59
total_payout_value0.688 HBD
curator_payout_value0.227 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length296
author_reputation6,311,207,566,498,817
root_title"使用PHP查询STEEM区块链 / Using PHP to query the STEEM blockchain"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id11,559,693
net_rshares273,113,450,256
author_curate_reward""
vote details (2)
@techtek · (edited)
@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 ?
👍  
properties (23)
authortechtek
permlinkre-oflyhigh-re-techtek-re-oflyhigh-php-steem-using-php-to-query-the-steem-blockchain-20170812t080949076z
categorycn
json_metadata{"tags":["cn"],"users":["oflyhigh"],"app":"steemit/0.1"}
created2017-08-12 08:10:06
last_update2017-08-12 08:10:30
depth3
children0
last_payout2017-08-19 08:10:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,820
author_reputation28,283,249,927,543
root_title"使用PHP查询STEEM区块链 / Using PHP to query the STEEM blockchain"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id11,578,308
net_rshares677,066,647
author_curate_reward""
vote details (1)