2
I generate a specific tag from my system, my customers need to add this tag within the body
of their index, my problem is: How to identify if this tag is inside the site, only by its url, without informing the file name, for example:
Client informs its url: www.teste.com.br
, and my system will access and check if the tag is there.
Currently I Gero one . html, the client uploads to your hosting and my system checks if a certain content exists in that uploaded file:
$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;
}
Working perfectly, but, I need the methodology of the tag, IE, the only problem is: Check if the content is in the main url, this, without informing the file
Vlw
That tag of yours is on
body
of the main page?– LocalHost
Yes, the tag should be inserted by the customer inside the main page body
– sNniffer
What is the name of your tag?
– LocalHost
If you can add details it would help. For example, how is the tag and how is present on a "real page".
– Inkeliz