this stupid tag doesnt work!!
i downloaded a cgi program and the readme says i have to put this <!--#EXEC cgi="/cgi-bin/rumor_show.cgi" --> with the right link in a html but it doesnt work! (everything else works: adding things) but it wont display it!
stupid!
is there another way to display something
BTW the code!
Quote:
#!/usr/bin/perl
require 'rumor_config.cgi';
if (-e $randomtext_file) {
if (open(TEXTFILE,$randomtext_file)) {
while (<TEXTFILE>) {
if (! m/^#/) {
push (@randomtext,$_);
}
}
close(TEXTFILE);
}
print $randomtext[rand $#randomtext];
}
else {
# This is to prevent "Internal Server Error" when the script is new
# and there is no rumor file yet.
print "Be the first to <A href="$script_URL">add a rumor</A> right here!\n";
}