Hello, I'm having problems with my code. His initial idea is to go through the server and show the links to the news.
<?php
$inicio=180;
if(file_exists("http://www.sitequalquer.com.br/noticia_".$inicio.".htm")){
while($inicio){
echo '<a href="http://www.sitequalquer.com.br/noticia_'.$inicio.'.htm">noticia'.$inicio.'</a><br>';
$inicio++;
}
}else{
echo "http://www.sitequalquer.com.br/noticia_".$inicio.".htm";
}
?>
I'm running this code on my machine; but I'm not aware if the file_exists
command works to traverse external files.