Jump to content

Recommended Posts

Posted

I would like to include an RSS feed from my forum on one of my main pages. Since it's so traffic heavy, I'd like to avoid that page being PHP and processing the RSS feed each and every time the page is called. I'd like to set up a cron job to update the page every six hours or so.

 

But how would I get the RSS feed from the forum, then parse that and inject it into a static page - all done via a php script called from cron?

 

Or maybe I've misunderstood the question and there's a simpler way to do it?

Posted

Thanks, Lisa. I was able to modify the script from wirelessdev easily, and it worked really well. So I'll be using that since I already whipped it into shape.

Posted

I did, that's just the pattern I used when preparing the string. It looks way different in reality.

 

Never mind, when I copied the path from somewhere else, I appended the path to PHP... I'll try again without that!

Posted

Nothing enlightening in the error logs. That's my first place to check. Probably failed at a much earlier level.

 

This time mail spit out this error message:

 

/home/username/public_html/filename.htm: Unsupported scheme.

 

I switched things around a bit, and now I think I'm on the right track. Got a very helpful error message. Turns out I need to switch around source and receiving file on the cron string.

 

...and, it worked!

 

See how I did it:

 

http://www.totalchoicehosting.com/forums/i...topic=10476&hl=

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...