hey there,
ok need a script that finds a dir .. the dir will be a variable from url like http://whwatver.com/cgi-bin/script.pl?dirname=whatever
and it opens that "whatever" dir and lists every.txt file in that dir and if you click one of the names of the txt files listed it is linked to the txt file...i havent got very far argh im stumped....
got a lil bit but not much luck...can anyone hep me?
heres what i got which aint much use hehe
parse_form();
$dirname =$FORM{dirname};
opendir(DIR,"$dirname");
$found='no';
while($list=<DIR>){
if ($list=~ m/$dirname/g){
$found='yes';
}
}
if ($found eq 'yes' ) {
print "list of files with <br> between\n";
}
else {
print "No resluts found for $name in our database sorry!\n";
argh any ideas?
thanks lot
sir p
ok need a script that finds a dir .. the dir will be a variable from url like http://whwatver.com/cgi-bin/script.pl?dirname=whatever
and it opens that "whatever" dir and lists every.txt file in that dir and if you click one of the names of the txt files listed it is linked to the txt file...i havent got very far argh im stumped....
got a lil bit but not much luck...can anyone hep me?
heres what i got which aint much use hehe
parse_form();
$dirname =$FORM{dirname};
opendir(DIR,"$dirname");
$found='no';
while($list=<DIR>){
if ($list=~ m/$dirname/g){
$found='yes';
}
}
if ($found eq 'yes' ) {
print "list of files with <br> between\n";
}
else {
print "No resluts found for $name in our database sorry!\n";
argh any ideas?
thanks lot

sir p
Comment