bug in the example crontab from cron4rss.php

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
ardiederich
Posts: 55
Joined: Tue Aug 10, 2004 3:02 pm

bug in the example crontab from cron4rss.php

Post by ardiederich »

In 1.4.8 and 1.5.0 rc4 you have an example crontab line of
0 * * * * /usr/local/bin/php -f /path/to/your/faq//xml/cron4rss.php

-f just parses the file. You should run it like
0 * * * * /usr/local/bin/php -/path/to/your/faq/xml/cron4rss.php
to create the files.

I'm also getting a parse error in the output for the latest feed, using opera 8.01 as my newsreader. It's the blank encoding:
$output = "<?xml version=\"1.0\" encoding=\"".$PMF_LANG["metaCharset"]."\" standalone=\"yes\" ?>\n<rss version=\"2.0\">\n<channel>\n";

which outputs:
<?xml version="1.0" encoding="" standalone="yes" ?>

Where should my PMF_LANG be set?

--
Andrew Diederich
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Andrew,

cron4rss.php isn't anymore in v1.5. but I'll fix it for 1.4.9.

I'll check the problem with the lost charset.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ardiederich
Posts: 55
Joined: Tue Aug 10, 2004 3:02 pm

Post by ardiederich »

Yup, it's not in 1.5. I was not looking in my test setup, like I thought I was.

So, if the cron script isn't in 1.5, will there be something else to do the same thing? Will there even be the rss feed?

--
Andrew
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

in 1.5 the RSS files will be generated on the fly.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ardiederich
Posts: 55
Joined: Tue Aug 10, 2004 3:02 pm

Post by ardiederich »

Ah, I see them down in feed/latest, news, topten, now. Thanks for the tip.

--
Andrew
Post Reply