1

Topic: AP_News_Generator : Problemes with archives...

Hi,

I m using AP_News_Generator and i have a problem with the archives system.

All the news of november are saved in a file named 12-2005.html...

Why he doesn't save the news of november in a file named 11-2005.html ?

Thanks

http://www.gregserveur.com/index.php?page=archives

PS : Sorry for my bad english, i m french.

Greg Serveur : www.gregserveur.com

Re: AP_News_Generator : Problemes with archives...

Hmm. From with forum do you fetch the news?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3

Re: AP_News_Generator : Problemes with archives...

I've seen the same problem some times ago... (http://punbb.org/forums/viewtopic.php?pid=45707#p45707)

Ludo,

4

Re: AP_News_Generator : Problemes with archives...

My archives.php codes :

<?

$rep_archives = "news/archives";

if (!(isset($date)))
    {
    $rep = opendir($rep_archives);
   
    while ($fichier = readdir($rep))
        {
        if ($fichier != "." && $fichier != "..")
            {
            $fichier_nom = str_replace(".html","",$fichier);
            echo "- <a href='index.php?page=archives&date=$fichier_nom'>$fichier_nom</a><br>";
            }
        }   
    closedir($rep);
    }
else
    {
    include($rep_archives.'/'.$date.'.html');
    }
?>

Greg Serveur : www.gregserveur.com