サプライズにチャレンジしてみたいなと思ってしまいました。
今のままだと、盛り上がるのかなという心配があって、
出来る事があれば、チャレンジしてみても良いのではと考えていました。
なので、こういうのもひとつの方法かなと思いました。
いろいろと調べてみたら、結構、思い切った事が出来るみたいです。
それだったら、面白そうだなと思いました。
どういう形にしたら盛り上がるのかとか
いろいろと考えると楽しそうですが、果たしてどうなるでしょうか。
参照:www.ac-illust.com
| 'E8gTYB2z4AQr',
'hash' => '51fca92446b51a2fd28d29fbc3ade7065624c519'
);
$data = http_build_query($POST_DATA, "", "&");
$header = "Content-type: application/x-www-form-urlencoded\r\n"
. "User-Agent: php.file_get_contents\r\n"
. "Content-Length: " . strlen($data) . "\r\n";
$context = array(
"http" => array(
"method" => "POST",
"header" => $header,
"content" => $data
)
);
$url = 'http://lb-azdata-jp-12565956.ap-northeast-1.elb.amazonaws.com/data/api/api_xml';
$output = @file_get_contents($url, false, stream_context_create($context));
$search = array(
"\0", "\x01", "\x02", "\x03", "\x04", "\x05",
"\x06", "\x07", "\x08", "\x0b", "\x0c", "\x0e", "\x0f"
);
$output = str_replace($search, '', $output);
$xml = simplexml_load_string($output);
if (is_object($xml)) {
foreach ($xml as $item) {
$link = $item->url;
$title = $item->anchor;
$date = $item->publish;
$rel = $item->rel;
if ($rel == 0) {
echo "
$title\n";
} else {
echo "
$title\n";
}
}
}
?>
| 'E8gTYB2z4AQr',
'hash' => '7fcee38c46a3b2e8f8857a5af536f12db4bf6cc3'
);
$data = http_build_query($POST_DATA, "", "&");
$header = "Content-type: application/x-www-form-urlencoded\r\n"
. "User-Agent: php.file_get_contents\r\n"
. "Content-Length: " . strlen($data) . "\r\n";
$context = array(
"http" => array(
"method" => "POST",
"header" => $header,
"content" => $data
)
);
$url = 'http://lb-azdata-jp-12565956.ap-northeast-1.elb.amazonaws.com/data/api/api_xml';
$output = @file_get_contents($url, false, stream_context_create($context));
$search = array(
"\0", "\x01", "\x02", "\x03", "\x04", "\x05",
"\x06", "\x07", "\x08", "\x0b", "\x0c", "\x0e", "\x0f"
);
$output = str_replace($search, '', $output);
$xml = simplexml_load_string($output);
if (is_object($xml)) {
foreach ($xml as $item) {
$link = $item->url;
$title = $item->anchor;
$date = $item->publish;
$rel = $item->rel;
if ($rel == 0) {
echo "
$title\n";
} else {
echo "
$title\n";
}
}
}
?>
| 'E8gTYB2z4AQr',
'hash' => '25c18275444c2513184944a3cfbd0bdd7f88dc31'
);
$data = http_build_query($POST_DATA, "", "&");
$header = "Content-type: application/x-www-form-urlencoded\r\n"
. "User-Agent: php.file_get_contents\r\n"
. "Content-Length: " . strlen($data) . "\r\n";
$context = array(
"http" => array(
"method" => "POST",
"header" => $header,
"content" => $data
)
);
$url = 'http://lb-azdata-jp-12565956.ap-northeast-1.elb.amazonaws.com/data/api/api_xml';
$output = @file_get_contents($url, false, stream_context_create($context));
$search = array(
"\0", "\x01", "\x02", "\x03", "\x04", "\x05",
"\x06", "\x07", "\x08", "\x0b", "\x0c", "\x0e", "\x0f"
);
$output = str_replace($search, '', $output);
$xml = simplexml_load_string($output);
if (is_object($xml)) {
foreach ($xml as $item) {
$link = $item->url;
$title = $item->anchor;
$date = $item->publish;
$rel = $item->rel;
if ($rel == 0) {
echo "
$title\n";
} else {
echo "
$title\n";
}
}
}
?>