![]() |
Need help with simple RSS praser
If anyone could help me that would be great
My tube sites have rss feeds and I want to list latest videos on other sites, I need something simple and hopefully with cache, I found simpleRSS script but I couldn't get it to work probebly because I'm a noob at those things If anyone could help me that would be great, I can pay a few bucks if needed, icq is in my sig. |
Post your RSS URL here and I'll look at it.
|
|
That's very easy. My code below (juts a few lines of PHP) will do the trick.
Code:
<?php |
simple and effective code ;)
|
thank you
it works, although a bit slow because there's no caching how do I limit number of items parsed? |
Here is the same code but with hourly cashing:
Code:
<?php Can't be easier, right? :winkwink: |
Quote:
Quote:
$cnt = count ( $index ["TITLE"] ); to this one: $cnt = min ( 5, count ( $index ["TITLE"] ) ); where 5 is your limit. |
Quote:
Quote:
|
What's wrong with it? Did you create the "cache.txt" file and chmoded it properly?
|
Yes I created the cache.txt file in the same folder and chmoded it to 666 (also tried 777)
Just outputs a blank page. |
Ah, now i see the problem. It's because the cache file is initially blank and it will update only after a hour :)
Here is a slightly fixed code: Code:
<?php |
Perfect! Thanks I appreciate it :)
|
You're welcome :)
|
how do I add substr to the DESCRIPTION value?
|
Quote:
|
All times are GMT -7. The time now is 06:11 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123