$ip = getenv("REMOTE_ADDR");
$n=0;
$nro="";
$url_texto="https://www.legislacaocompilada.com.br/caraguatatuba/Arquivo/Documents/legislacao/html/L26772023.html";
//$url_texto="https://www.portalhosting.com.br";
//$url_texto="https://www.legislacaocompilada.com.br/caraguatatuba/norma.aspx?id=33681&tipo=4&interno=0";
//$url_texto="https://www.legislacaocompilada.com.br/caraguatatuba/";
$texto=pega_url($url_texto);
echo "Nro:$nro:$url_texto
";
//echo $texto;
$html = mb_convert_encoding($texto, "Windows-1252", "UTF-8");
$html=trim(str_replace("'","¬",$html));
echo "";
echo "";
echo "
";
echo $texto;
echo "
";
echo $html;
/*
$url = $url_texto;
$page = file_get_contents($url);
if (preg_match_all('@.+?@', $page, $matches)) {
foreach ($matches[0] as $link) {
print "$link
\n";
}
}
*/
/*
$site_url = 'https://www.portalhosting.com.br';
$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $site_url);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
ob_start();
curl_exec($ch);
curl_close($ch);
$file_contents = ob_get_contents();
ob_end_clean();
echo $file_contents;
*/
?>