View previous topic :: View next topic |
Author |
Message |
ShaolinTiger Forum Fanatic


Joined: 18 Apr 2002 Posts: 16777215 Location: Kuala Lumpur, Malaysia

|
|
Back to top |
|
 |
RoboGeek SF Mod


Joined: 13 Jun 2003 Posts: 16777166 Location: LeRoy, IL

|
Posted: Tue Jun 24, 2003 1:57 am Post subject: |
|
|
You've been a busy boy today! I'll add it to my site probably tomorrow
|
|
Back to top |
|
 |
Rottz Just Arrived


Joined: 29 Mar 2003 Posts: 3 Location: East Coast, USA

|
Posted: Tue Jun 24, 2003 2:42 am Post subject: |
|
|
RoboGeek wrote: |
You've been a busy boy today! I'll add it to my site probably tomorrow |
Actually its been there for over a month now, he just finally got off his lazy ass and posted something about it
Good post tho, amazed he spent so much time on it.
My website traffic has quadupled since he posted it, wish he'd tell me first!
|
|
Back to top |
|
 |
ShaolinTiger Forum Fanatic


Joined: 18 Apr 2002 Posts: 16777215 Location: Kuala Lumpur, Malaysia

|
Posted: Tue Jun 24, 2003 10:31 am Post subject: |
|
|
Oi, I was testing it
And now I'm satisfied it works I've released it to the public, that's what us professionals do Rottz..not that you would know
Is anyone using it now?
I find it particularly useful for keeping up to date with what is moving.
|
|
Back to top |
|
 |
hugo Forum Fanatic


Joined: 14 Jun 2003 Posts: 16777215 Location: Netherlands, Europe

|
Posted: Tue Jun 24, 2003 12:25 pm Post subject: |
|
|
Great!
The location can be used with the KDE program ``KNewsTicker'', too. Just add the URL and it'll start picking up news-items...
|
|
Back to top |
|
 |
Giro New Member


Joined: 25 Mar 2004 Posts: 22 Location: England

|
Posted: Tue Jun 24, 2003 12:40 pm Post subject: |
|
|
Yeh got it running here -> http://sub.gotdns.org/sfdc-jump.php
IE6 displays it dodgy for some reason will fix it, Mozilla is fine.
EDIT: P,s Notice the security forums in the link text Google will like that for a backlink.
|
|
Back to top |
|
 |
aberent Trusted SF Member


Joined: 08 May 2003 Posts: 2 Location: Toronto

|
Posted: Thu Jul 31, 2003 8:38 pm Post subject: Perl RSS script |
|
|
Does anyone have a simple Perl 5 rss script I can use?
|
|
Back to top |
|
 |
Rottz Just Arrived


Joined: 29 Mar 2003 Posts: 3 Location: East Coast, USA

|
Posted: Thu Jul 31, 2003 10:00 pm Post subject: Re: Perl RSS script |
|
|
aberent wrote: |
Does anyone have a simple Perl 5 rss script I can use? |
I just have a bash script that does wget and cronjob, fairly simple.
|
|
Back to top |
|
 |
squidly Trusted SF Member


Joined: 07 Oct 2002 Posts: 16777215 Location: Umm.. I dont know.. somewhere

|
Posted: Thu Jul 31, 2003 10:28 pm Post subject: |
|
|
Ol Man wrote: |
Yeh got it running here -> http://sub.gotdns.org/sfdc-jump.php
IE6 displays it dodgy for some reason will fix it, Mozilla is fine.
EDIT: P,s Notice the security forums in the link text Google will like that for a backlink. |
DO you have the source for you php script for the page?
I would like to see it.
|
|
Back to top |
|
 |
aberent Trusted SF Member


Joined: 08 May 2003 Posts: 2 Location: Toronto

|
Posted: Fri Aug 01, 2003 3:37 pm Post subject: |
|
|
I was actually asking if anyone has source code I can use rather then an example of it. It seems the only script I found uses some XML object that is not found on my web server.
Thanks,
|
|
Back to top |
|
 |
Giro New Member


Joined: 25 Mar 2004 Posts: 22 Location: England

|
Posted: Fri Aug 01, 2003 6:43 pm Post subject: |
|
|
Heres what i use got of some site ->
Code: |
<?php
class RSSParser {
var $insideitem = false;
var $tag = "";
var $title = "";
var $description = "";
var $link = "";
function startElement($parser, $tagName, $attrs) {
if ($this->insideitem) {
$this->tag = $tagName;
} elseif ($tagName == "ITEM") {
$this->insideitem = true;
}
}
function endElement($parser, $tagName) {
if ($tagName == "ITEM") {
printf("<dt><b><a href='%s' target='_blank'>%s</a></b></dt>",
trim($this->link),htmlspecialchars(trim($this->title)));
printf("<dd>%s</dd>",htmlspecialchars(trim($this->description)));
$this->title = "";
$this->description = "";
$this->link = "";
$this->insideitem = false;
}
}
function characterData($parser, $data) {
if ($this->insideitem) {
switch ($this->tag) {
case "TITLE":
$this->title .= $data;
break;
case "DESCRIPTION":
$this->description .= $data;
break;
case "LINK":
$this->link .= $data;
break;
}
}
}
}
$xml_parser = xml_parser_create();
$rss_parser = new RSSParser();
xml_set_object($xml_parser,&$rss_parser);
xml_set_element_handler($xml_parser, "startElement", "endElement");
xml_set_character_data_handler($xml_parser, "characterData");
$fp = fopen("http://www.security-forums.com/forum/rdf.php","r")
or die("Error reading RSS data.");
while ($data = fread($fp, 4096))
xml_parse($xml_parser, $data, feof($fp))
or die(sprintf("XML error: %s at line %d",
xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser)));
fclose($fp);
xml_parser_free($xml_parser);
?>
|
|
|
Back to top |
|
 |
ShaolinTiger Forum Fanatic


Joined: 18 Apr 2002 Posts: 16777215 Location: Kuala Lumpur, Malaysia

|
|
Back to top |
|
 |
djlanman Just Arrived

Joined: 17 Dec 2002 Posts: 1

|
Posted: Fri Sep 26, 2003 5:32 am Post subject: Does anyone have ASP code for these feeds? |
|
|
I've looked everywhere, and can't seem to find a good place to start. I'd like to add feeds from CERT, etc using ASP.
Thanks!
|
|
Back to top |
|
 |
ShaolinTiger Forum Fanatic


Joined: 18 Apr 2002 Posts: 16777215 Location: Kuala Lumpur, Malaysia

|
|
Back to top |
|
 |
CHeeKY Just Arrived


Joined: 13 Feb 2003 Posts: 3

|
Posted: Wed Oct 01, 2003 3:11 pm Post subject: |
|
|
yeah doesnt look to bad at all, used the ones from others sites for a while, wont add as I like to visit.
|
|
Back to top |
|
 |
StIlTz Just Arrived


Joined: 13 Feb 2003 Posts: 3 Location: Minnesota

|
Posted: Wed Oct 01, 2003 5:35 pm Post subject: |
|
|
I'll be throwing that up on stiltz - dot - net just as soon as I find the time.
Should be within the week... then I'll get back to the regular design of good 'ol stiltz dot net
|
|
Back to top |
|
 |
|