Newstoday RSS
- Started
- Last post
- 39 Responses
- determinedmoth0
yes...
or set $url by the query string.... get from the URL.
- -scarabin-0
would i really have to repeat that whole block of code for each feed?
- -scarabin-0
what would i do to get multiple feeds on one page?
- -scarabin-0
that's working. thanks moth! you are php guru...
i'll tool around with it from here
- determinedmoth0
Also important is to add a cache folder so you dont piss off whoever owns the feed. They might just block you if yo dont...
- -scarabin-0
i did...
i have it as
require_once("magpierss/rss_fetc...
$url = $_GET["http://scarabin.net/weblo...
$rss = fetch_rss( $url );
- determinedmoth0
You need to give $url a value..
- -scarabin-0
except now it's giving me a new error.
blah. i give up.
- -scarabin-0
oh damn jah, you nailed it
thanks :D
- jah_0
shouldn't it be:
require_once("./magpier ss/rss_fetch.inc");(missing quotes?)
J
- -scarabin-0
is this a server problem?
- -scarabin-0
and "magpierss/rss_fetch.inc"
is there, in its proper place
- -scarabin-0
i made sure all paths were correct, and now it's giving me a new error:
Fatal error: main(): Failed opening required 'inc' (include_path='.:/usr/local/lib... in /homepages/7/d88284854/htdocs/ne... on line 10
line 10 is still:
require_once(magpierss/rss_fetch...
- UndoUndo0
do you have the file 'rss_fetcchin.inc' ??
is it in the same directory as yr script that produces this error?
- -scarabin-0
btw, line 10 is
require_once(rss_fet ch.inc);
- -scarabin-0
i put that code inside a php tag on my index page here
and it's giving me this error.
what is this?
- determinedmoth0
require_once(rss_fetch.inc);
$url = $_GET['url'];
$rss = fetch_rss( $url );echo "Channel Title: " . $rss->channel['title'] . "";
echo "";
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
echo "$title";
}
echo "";
- determinedmoth0
Look in the README scar..
- -scarabin-0
bravo