#!/usr/bin/perl ######################################################### # # # MaximumEdge.com News Headlines # # # ######################################################### # # # This perl script will fetch news headlines from # # MaximumEdge.com and display them on your site. # # # # To install this script simply upload it to your # # CGI-BIN and CHMOD it 755. You will also have to # # rename is to "newsheadlines.cgi" for it to work. # # You may also have to change the first line of this # # script to the correct location of perl on your web # # server. On any page where you want headlines to # # appear, rename the page ending with '.shtml' and # # add this code: # # # # # # # # Make sure that it points to the correct directory. # # Replace "top" with whatever headlines you wish # # to use. Your choices are "top", "entertainment", # # "politics", "science", "technology", and "offbeat". # # # # # If you have any questions or comments regarding # # this script please send an e-mail using this form: # # http://www.maximumedge.com/contact.shtml # # # ######################################################### use LWP::Simple; use LWP::UserAgent; use File::stat; print "Content-type:text/html\n\n"; print "