Ik heb het met lynx, curl wget etc gebruikt om de url te laden, maar hij komt er niet door.
Ik werk via linux centos 7.
Als ik de link via de browser laad, werkt alles prima zoals het hoort.
<script src="https://cdn.steemjs.com/lib/latest/steem.min.js"></script>
<script>
<?php
gc_enable(); // Enable Garbage Collector
include ('/home/divers/domains/globalwebdevelopment.net/public_html/steem/config.php');
include (''.DOC_ROOT.'class/class.php');
ini_set('memory_limit', '1000M');
$DBD = new DBD();
ini_set('display_errors',0);
error_reporting(E_ALL);
$sel = mysqli_query($DBD->conn(),"select * from blogs WHERE posted = 0 limit 1");
while ($s = mysqli_fetch_array($sel))
{
?>
steem.broadcast.comment(
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // posting wif
'', // author, leave blank for new post
'steemit', // first tag
'xxxxxxxx', // username
'<?=$s['seo_title']?>', // permlink
'<?=$s['title']?>', // Title
'<?=$s['blog_text']?>', // Body of post
// json metadata (additional tags, app name, etc)
{ tags: ['cryptocurrency'], app: 'cryptocurrency news' },
function (err, result) {
if (err)
alert('Failure! ' + err);
else
alert('Success!');
}
);
<?php
$i = mysqli_query($DBD->conn(),"update blogs set posted = 1 where id = '".$s['id']."'");
} ?>
</script>