- file_get_contents: documentation ( source)
<?php
//差分を見て前回から更新があったかどうか確認
$old_article = file_get_contents('https://i-bitzedge.com/cron/test/test_old.txt');
$new_article = file_get_contents('https://i-bitzedge.com/cron/test/test_new.txt');
echo $new_article;
$diff = xdiff_string_diff($old_article, $new_article, 1);
if (is_string($diff)) {
echo "2 つの記事の差分:\n";
echo $diff;
}
?>