PHP script for "Google-Site-Verification"

hi

I am looking for the php script that tells me that any site using “google Webmaster Tool” or not.
for example,

if i have text box and search button, when i enter any site URL in the text box and click on “search” button, it should output: this site using Google Webmaster Tool/ This site is verified by google.

I know how can I check A site using “google Webmaster Tool” or not by clicking on the “view Page Source " of the website and look for "<meta name=“google-site-verification” content=“4-EeqWdiIL9YteyEXEQRRRmnL5FQcAfM2a_gNa7PY4I” />” … if this line of code is there , means website using “google webmaster tool”…

So basically I am looking for PHP script which tells for any website by entering web URL in search box and output “YES” or “NO”.

Many Thanks In Advance.
Payal

Most sites will use Google’s preferred verification method of file upload, rather than meta tag, and the code is different for each Webmaster account, as far as I know.

Out of interest, why do you want to do this?

I understand there are few ways of checking thatt site has got Webmaster tool or not, but i need to write that code , as have been asked by my senior developer.

You should ask the project lead for more detail information for your task, or if they asked you to research the topic, you should read up on the documentation Google offer.

On a side note, a website can be utilizing the “Google Webmaster Tools” without having any references in their source code. As long as your website is spidered by Google you will have access to view it inside their tools.