Parašė kiskiss· 2011 Rugs. 28 16:09:29
#1
Kaip supratau kaikurie puslapiai buna apsaugoti kazkokiu tai budu nuo source kopijavimo. Kaip tai apeiti gal kas zino?
<?php
header("content-type: text/plain");
$myurl = 'https://one.lt';
$curl_handle = curl_init();
curl_setopt ($curl_handle, CURLOPT_URL, $myurl);
curl_setopt ($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl_handle, CURLOPT_CONNECTTIMEOUT, 1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (preg_match("/Klausimai/", $buffer))
{
echo "Tiesa<br>";
}
else
{
echo "Netiesa<br>";
}
?>
Redagavo kiskiss· 2011 Rugs. 28 16:09:36