I generate a specific tag from my system, my clients need to add this tag inside the body
of their index, my problem is: How to identify if this tag is inside the site, only by your url, without informing the name of the file, for example:
The client informs you of your url: www.teste.com.br
, and my system will access and verify that the tag is there.
Currently I generate a .html, the client uploads to your hosting and my system checks if a certain content exists in that file sent:
$file_download = "1__".md5('1').".html";
$url = "http://www.site.com.br/".$file_download.";
$arquivo = $url ;
$handle = @fopen($arquivo, "rb");
$cont = @fread($handle, 100);
if($cont == "verifica-licenca") {
echo 1;
} else {
echo 0;
}
Vlw