php - Is regex a good way to test a url -


I am trying to test the validity of the url entered with php5 Thought, but assuming that it works correctly all the time, it only considers the problem of URL as syntactically valid. It does not tell me anything about URL correcting or working

If possible, I am trying to find another solution to do either, or to find 2 different solutions for this What's better for you?

If there is a way to go to Rizbox, what tests have been done for the URL? Instead of breaking my head on a rijks (url very is complex), I use the bus, and then use the URL,

  if (filter_var ($ url, FILTER_VALIDATE_URL)! == incorrect) {$ ch = curl_init ($ url) Curl_setopt ($ CH, CURLOPT_HEADER, true); Curl_setopt Curl_getinfo ($ CH, CURLINFO_HTTP_CODE); curl_close ($ ch); if ($ status> = 200 & amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; < / Code> 

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -