我想查看博客状态,有效或已删除。
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
感谢您的帮助...
答案 0 :(得分:1)
您有4个选项
但是我可能会继续询问支持部门,并询问是否有办法检查,或者上述任何选项是否可行。