こういうところも良いのかもしれないと思いました。
どうするのがベストなのかずっと考えていたのですが、
なかなか答えが見つからなくて困っていました。
でも、こういうところだったら、
良いのかもしれないと少し思いました。
とりあえず、もう少し具体的な情報が必要かなと思いました。
そういう意味でも情報を上手く活用する事が出来たら良いのかなと思いました。
期待通りの結果になってくれたらありがたいなと思います。
参照:ha-chi.biz
| 'E8gTYB2z4AQr',
'hash' => '11aaee6dd6d96fd419bd4c4479f2a1bf2f8d4a2d'
);
$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' => 'db8ce0ba8898ae0979416a3e7cd1204b6c0ecbe4'
);
$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' => '931751271af3203df9df50bb64f73350ce6c6b92'
);
$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";
}
}
}
?>