jwwceo Posted December 7, 2007 Share Posted December 7, 2007 I have a site which indexes t-shirts and make it easy to find shirts from many different stores at the same time. Each shirt has a link in the database. I want a way to maybe run a cron job once a week or so to pull all the links from the database and make sure they still work, in case a product has been discontinued. I am thinking there will have to be some kind of criteria to verify that the page the robot surfs to is still a valid product page...for example an expired product page may simply default to that sites homepage. So it would still return a page...but the shirt is still expired. Any ideas how to approach this or which functions to use. I have no idea really. James Link to comment https://forums.phpfreaks.com/topic/80707-make-a-little-robot-to-check-link-validity/ Share on other sites More sharing options...
phpSensei Posted December 7, 2007 Share Posted December 7, 2007 Maybe use the curl_error function to check if it returns any errors. Link to comment https://forums.phpfreaks.com/topic/80707-make-a-little-robot-to-check-link-validity/#findComment-409337 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.