View previous topic :: View next topic |
Author |
Message |
ShaolinTiger Forum Fanatic
![Forum Fanatic Forum Fanatic](/images/ranks/globes/globes_5.gif)
![](images/avatars/3e08642e3e5cc55e1a579.jpg)
Joined: 18 Apr 2002 Posts: 16777215 Location: Kuala Lumpur, Malaysia
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
|
Back to top |
|
![](templates/Appalachia/images/spacer.gif) |
RoboGeek SF Mod
![SF Mod SF Mod](/images/ranks/globes/globes_mod.gif)
![](images/avatars/16470509104384c9d4cbd42.gif)
Joined: 13 Jun 2003 Posts: 16777166 Location: LeRoy, IL
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
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 |
|
![](templates/Appalachia/images/spacer.gif) |
Rottz Just Arrived
![Just Arrived Just Arrived](/images/ranks/globes/globes_0.gif)
![](images/avatars/4409e8e53ea61e48e684a.jpg)
Joined: 29 Mar 2003 Posts: 3 Location: East Coast, USA
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
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 |
|
![](templates/Appalachia/images/spacer.gif) |
ShaolinTiger Forum Fanatic
![Forum Fanatic Forum Fanatic](/images/ranks/globes/globes_5.gif)
![](images/avatars/3e08642e3e5cc55e1a579.jpg)
Joined: 18 Apr 2002 Posts: 16777215 Location: Kuala Lumpur, Malaysia
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
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 |
|
![](templates/Appalachia/images/spacer.gif) |
hugo Forum Fanatic
![Forum Fanatic Forum Fanatic](/images/ranks/globes/globes_5.gif)
![](images/avatars/gallery/01-SF-Avatars/1106.gif)
Joined: 14 Jun 2003 Posts: 16777215 Location: Netherlands, Europe
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
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 |
|
![](templates/Appalachia/images/spacer.gif) |
Giro New Member
![New Member New Member](/images/ranks/globes/globes_1.gif)
![](images/avatars/304373523406dd50e99cff.gif)
Joined: 25 Mar 2004 Posts: 22 Location: England
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
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 |
|
![](templates/Appalachia/images/spacer.gif) |
aberent Trusted SF Member
![Trusted SF Member Trusted SF Member](/images/ranks/globes/globes_trusted.gif)
![](images/avatars/189908423ebae5d7e48ad.jpg)
Joined: 08 May 2003 Posts: 2 Location: Toronto
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
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 |
|
![](templates/Appalachia/images/spacer.gif) |
Rottz Just Arrived
![Just Arrived Just Arrived](/images/ranks/globes/globes_0.gif)
![](images/avatars/4409e8e53ea61e48e684a.jpg)
Joined: 29 Mar 2003 Posts: 3 Location: East Coast, USA
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
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 |
|
![](templates/Appalachia/images/spacer.gif) |
squidly Trusted SF Member
![Trusted SF Member Trusted SF Member](/images/ranks/globes/globes_trusted.gif)
![](images/avatars/gallery/01-SF-Avatars/vegeta.jpg)
Joined: 07 Oct 2002 Posts: 16777215 Location: Umm.. I dont know.. somewhere
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
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 |
|
![](templates/Appalachia/images/spacer.gif) |
aberent Trusted SF Member
![Trusted SF Member Trusted SF Member](/images/ranks/globes/globes_trusted.gif)
![](images/avatars/189908423ebae5d7e48ad.jpg)
Joined: 08 May 2003 Posts: 2 Location: Toronto
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
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 |
|
![](templates/Appalachia/images/spacer.gif) |
Giro New Member
![New Member New Member](/images/ranks/globes/globes_1.gif)
![](images/avatars/304373523406dd50e99cff.gif)
Joined: 25 Mar 2004 Posts: 22 Location: England
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
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 |
|
![](templates/Appalachia/images/spacer.gif) |
ShaolinTiger Forum Fanatic
![Forum Fanatic Forum Fanatic](/images/ranks/globes/globes_5.gif)
![](images/avatars/3e08642e3e5cc55e1a579.jpg)
Joined: 18 Apr 2002 Posts: 16777215 Location: Kuala Lumpur, Malaysia
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
|
Back to top |
|
![](templates/Appalachia/images/spacer.gif) |
djlanman Just Arrived
![Just Arrived Just Arrived](/images/ranks/globes/globes_0.gif)
Joined: 17 Dec 2002 Posts: 1
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
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 |
|
![](templates/Appalachia/images/spacer.gif) |
ShaolinTiger Forum Fanatic
![Forum Fanatic Forum Fanatic](/images/ranks/globes/globes_5.gif)
![](images/avatars/3e08642e3e5cc55e1a579.jpg)
Joined: 18 Apr 2002 Posts: 16777215 Location: Kuala Lumpur, Malaysia
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
|
Back to top |
|
![](templates/Appalachia/images/spacer.gif) |
CHeeKY Just Arrived
![Just Arrived Just Arrived](/images/ranks/globes/globes_0.gif)
![](images/avatars/5002cb1a3f5b057e3f8f8.gif)
Joined: 13 Feb 2003 Posts: 3
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
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 |
|
![](templates/Appalachia/images/spacer.gif) |
StIlTz Just Arrived
![Just Arrived Just Arrived](/images/ranks/globes/globes_0.gif)
![](images/avatars/1876fb363f5bd06d64935.jpg)
Joined: 13 Feb 2003 Posts: 3 Location: Minnesota
![Offline Offline](templates/Appalachia/images/icon_offline.gif)
|
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 |
|
![](templates/Appalachia/images/spacer.gif) |
|