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? Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/161040-link-verifying/#findComment-849935 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.