How do you get the HTTP status code for a remote domain in php?

后端 未结 5 1339
不思量自难忘°
不思量自难忘° 2020-12-31 23:32

I would like to create a batch script, to go through 20,000 links in a DB, and weed out all the 404s and such. How would I get the HTTP status code for a remote url?

5条回答
  •  渐次进展
    2021-01-01 00:14

    http://www.webmasterworld.com/forum88/12559.htm a quick bit of googling found this link. The most up-to date version is near the bottom.

提交回复
热议问题