Check Urls Http-headers 17.09.08

I need a little php-script, which enables me to check 2 things for a given URL: - is the url in the index of google (normally checked with google by entering "site:www.domain.tld/test-url.htm" (should return true/false) - which http-header-status gives the url back on connection (should return numbers like 200, 404, 301, etc) the script should work on a server with curl installed and working with php4/5. Please solve the thing in one file without many classes in subfolders etc...



If you enjoyed this post, make sure you
Subscribe to my RSS feed!