query("select vcode FROM " . TABLE_META . " WHERE sent >= ? AND sent < ? ORDER BY id ASC", array($ts1, $ts2)); print $query->query . " $ts1, $ts2\n\n"; foreach ($query->rows as $q) { $data .= $q['vcode']; } print $data . "\n"; $digest = openssl_digest($data, "SHA256"); print "$digest\n"; print fetch_url("http://ecrive.net/api/plain?mode=sign&data=$digest"); //print fetch_url("http://ecrive.net/api/plain?mode=check&data=$digest&signature=$s");