Onloac Posted June 5, 2009 Share Posted June 5, 2009 Hello, I've been trying to figure out how to do this and haven't had much luck. I want to provide a url and then have it checked (broken or not) and then display if its good or not. Does anyone know if there is something build into PHP for this? Link to comment https://forums.phpfreaks.com/topic/161040-link-verifying/ Share on other sites More sharing options...
jxrd Posted June 5, 2009 Share Posted June 5, 2009 Regex. Link to comment https://forums.phpfreaks.com/topic/161040-link-verifying/#findComment-849881 Share on other sites More sharing options...
JonnoTheDev Posted June 5, 2009 Share Posted June 5, 2009 I want to provide a url and then have it checked (broken or not) Are you saying that you want to see if the url is valid i.e. it returns a 200 OK header or are you just wanting to check that a string is in the format of a url? i.e. contains http://,https://, .tld Link to comment https://forums.phpfreaks.com/topic/161040-link-verifying/#findComment-849935 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.