Weasel
06-23-2002, 09:09 AM
PluhNews is great, but it has one dissadvantage: It has to make a ton of calls to the MySQL database everytime a visitor goes to your homepage. In theory the number of calls could be reduced significantly if it just wrote a new data file each time a news record was posted.
So I re-wrore the pluhnews.php file to write everything to a standard TXT file. Now all I need is for pluhnews.php to execute every time a new thread is posted in the news forum.
So I was wondering if it would be possible to add something like this to the newthread.php file when a new thread is created:
if (forumid == whatever)
execute PluhNews.php
Can anyone offer any more insight?
So I re-wrore the pluhnews.php file to write everything to a standard TXT file. Now all I need is for pluhnews.php to execute every time a new thread is posted in the news forum.
So I was wondering if it would be possible to add something like this to the newthread.php file when a new thread is created:
if (forumid == whatever)
execute PluhNews.php
Can anyone offer any more insight?