Php - How to search url exists in particular link, Check url
How to search url exists in particular link
How to search if URL exists in a particular link?This method is the easiest way to check whether a proper url is having in a particular link. Many of them click the wrong link and choose in complex way.Using the following trick you can do it in a useful way.
$file = 'http://your site/path(any)'; $file_headers = @get_headers($file); if($file_headers[0] == 'HTTP/1.1 404 Not Found') { $exists = false; } else { $exists = true; }
The topic on Php - How to search url exists in particular link is posted by - Namo
Hope you have enjoyed, Php - How to search url exists in particular linkThanks for your time