I believe the entire logic of this script is absolutely wrong. Firstly, there is no code in articlebot.php which would cause it to loop for the specified interval time. Setting an interval appears to be useless, articlebot will grab the first item in the RSS and then wait until the cronjob fires it again to grab the second item, the interval setting is completely bypassed. The way I imagined functionality was as follows:
Say you have a RSS feed with 10 items that haven't been added to your forums. At whatever time you designated the cronjob to fire, the first item from the RSS is added to the forums. Because I have set the interval to 2 minutes, the next item is added 2 minutes later, etc. until after 20 minutes, all 10 items have been added to the forums, and execution stops. When my cronjob fires articlebot.php the next time it will check for any new items, and input them 1 at a time taking a 2 minute rest between items.
I believe this was the intention of the script, but there is no coding in articlebot.php to facilitate this. I am currently attempting to incorporate the correct interval structure into articlebot.php, however, it may prove to be difficult as I am having a hard time understanding the layout of this code as it appears to be completely linear without any reference to certain functions.
I will keep you guys updated.
|