1
我想檢查博客狀態,激活或刪除。PHP如何在blogspot中檢查已刪除的博客?
Active blog:
http://novisadcats.blogspot.com/
Removed blog:
http://cityofangell.blogspot.com/
Removed blog, but available to register:
http://madhouseofporn.blogspot.com/
我試圖使用PHP get_headers();
我可以檢查該博客是主動或刪除,但如何檢查,如果博客的狀態被刪除,但可以註冊?
實例結果:
Active blog:
$headers = get_headers("http://novisadcats.blogspot.com/");
echo $headers[12]; // HTTP/1.0 200 OK
Removed blog:
$headers = get_headers("http://cityofangell.blogspot.com/");
echo $headers[12]; // HTTP/1.0 404 Not Found
Removed blog, but available to regsiter:
$headers = get_headers("http://madhouseofporn.blogspot.com/");
echo $headers[12]; // HTTP/1.0 404 Not Found
感謝您的幫助......
他們是否公開API? –
@JohnSvensson我不知道,我認爲不。 –