Hello all,
I have named index.html a file that in fact is a perl cgi program and I have
put it in the directory /cgi-bin/
It works fine if I access it using an URL like:
http://localhost/cgi-bin/index.html
The problem is that I want to access that program using:
http://localhost/cgi-bin/
But
Octavian Rasnita wrote:
Hello all,
I have named index.html a file that in fact is a perl cgi program and I have
put it in the directory /cgi-bin/
It works fine if I access it using an URL like:
http://localhost/cgi-bin/index.html
The problem is that I want to access that program using:
Here's my offer (you can change $num_items_in_td and $num_cols):
use CGI qw(:standard);
open (FH, items.txt) or die Can't open file. Cause: $!;
my @items = sort FH;
chomp(@items);
print header();
$num_cols = 2;
$num_items_in_td = 2;
for ($i = 0; defined($items[$i]); $i += $num_items_in_td) {