{"blog_url":"https://bosssato.hatenablog.com/","blog_title":"\u521d\u3081\u3066\u306e\u30b7\u30b9\u30c6\u30e0\u3068\u65e5\u8a18","categories":["PHP"],"description":"PHP\u3067\u5b9a\u671f\u7684\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u3001\u524d\u56de\u66f4\u65b0\u5206\u306e\u30d5\u30a1\u30a4\u30ebfile_old.txt\u3068\u4eca\u56de\u66f4\u65b0\u5206\u306e\u30d5\u30a1\u30a4\u30ebfile.txt\u3067\u5dee\u5206\u3092\u898b\u3066\u66f4\u65b0\u304c\u3042\u3063\u305f\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3092\u8a66\u3059\u3002 //\u30d5\u30a1\u30a4\u30eb\u53d6\u5f97 $file = file_get_contents([file_path]) if (!$file) { return false; } //\u521d\u3081\u3066\u306e\u30c1\u30a7\u30c3\u30af\u306a\u3089\u524d\u56de\u66f4\u65b0\u78ba\u8a8d\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210 if (!is_file('file_old.txt') { shell_exec('touch file_old.txt'); } //\u521d\u3081\u3066\u306e\u30c1\u30a7\u30c3\u30af\u306a\u3089\u4eca\u56de\u66f4\u65b0\u78ba\u8a8d\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210 if (!is_file(\u2026","title":"\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u8fbc\u307f\u3001\u66f4\u65b0\u78ba\u8a8d","image_url":null,"author_name":"boss_sato","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbosssato.hatenablog.com%2Fentry%2F20100512%2F1273482808\" title=\"\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u8fbc\u307f\u3001\u66f4\u65b0\u78ba\u8a8d - \u521d\u3081\u3066\u306e\u30b7\u30b9\u30c6\u30e0\u3068\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","published":"2010-05-12 18:13:28","author_url":"https://blog.hatena.ne.jp/boss_sato/","url":"https://bosssato.hatenablog.com/entry/20100512/1273482808","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","width":"100%","version":"1.0"}