Home | Support Forums | Your Account | Gallery [2] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

CNN Feed Install Help Please

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic
Author Message
jaydarji

Beginner
Beginner


Joined: Apr 08, 2003
Posts: 1

PostPosted: Tue Apr 08, 2003 12:04 pm    Post subject: CNN Feed Install Help Please Reply with quote

Hi! I would like to install the CNN feed on a new website I am making, but I don't know how to go about doing it? Is there a place where I can find some documentation about implementing RSS step by step? Yep, I'm a newbie Wink Thanks!
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: CNN Feed Install Help Please  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Tue Apr 08, 2003 12:25 pm    Post subject: Reply with quote

all you need to do is copy that file into a directory somewhere (i'm assuming you're using Linux), and make it executable to the owner only (chmod u+rx cnn.pl). then just run "perl cnn.pl" from the command prompt. also make sure that you get the perl modules from CPAN that you need to implement the XML and RSS.

edit: what are the error messages you get when you run it? that will tell you what modules you will need.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
moebis

Beginner
Beginner


Joined: Apr 08, 2003
Posts: 1

PostPosted: Tue Apr 08, 2003 2:31 pm    Post subject: Why Perl Reply with quote

How do I run this on a Winbox? I really don't feel like running perl on top of a already very capable scripting language PHP. Why didn't you just implement this in PHP? I could see this being popular if you converted it to work as a nice PHP script for nuke. Very Happy

...just a friendly suggestion.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Tue Apr 08, 2003 2:43 pm    Post subject: Reply with quote

for starters, i didn't author the original script. i will take a look at this and see how difficult it would be to convert it to PHP. if you want, I can give you the URL of my XML files for the interim.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
grizz

Beginner
Beginner


Joined: Apr 09, 2003
Posts: 1

PostPosted: Wed Apr 09, 2003 3:04 am    Post subject: Reply with quote

dari,

when i try and run that .pl i get the following error.. Got any suggestions?

perl cnn_headlines.pl
Can't locate HTTP/Request.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.0/mach /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.0/BSDPAN /usr/local/lib/perl5/5.8.0/mach /usr/local/lib/perl5/5.8.0 .) at cnn_headlines.pl line 3.
BEGIN failed--compilation aborted at cnn_headlines.pl line 3.


Thanks,

grizz
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Wed Apr 09, 2003 7:39 am    Post subject: Reply with quote

when you get errors like that, you'll need to head to CPAN.org and get the HTTP perl module:
http://www.cpan.org/modules/00modlist.l ... WorldWideW
scroll down to the HTTP section. you'll probably need to grab the "request" and "response" modules and install them. if you take a look at the beginning of the perl script, you'll see a bunch of modules that you need:
Code: › use HTTP::Request ;
use HTTP::Response ;
use LWP::UserAgent ;
use XML::RSS ;
use base  HTML::Parser ;

all of these can be gotten from cpan.org.

edit: if you have problems, i think i might just be able to email you the modules, though i don't know if it's as simple as pulling the directories out of the site_perl directory or not.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia