I would write a WordPress plugin to parse all image source and check it's broken link or not. My idea is :
- Select all post&page's images by regex from MySQL
- Navigate the image url and get the response header (404 ,403 error etc)
- print a report
Since i don't need actual to download the binary file, so in performance ,compare in CURL , fopen , fsocketopen Which one is worst to use?
And one more question, which method can execute in multi-thread?