Broken Links Checker PHP Script
This source code will help you find the links broken. You can check multiple links in one transaction. You only need to list all link that needs to be checked into links.txt file. After that, you have to run the system.
You can customize this if you want to use it for your project.
Hope you learn from this.