This is another chapter in the SSI book: if my question has already an answer will someone please redirect me to the right thread? If there is any, I couldn't find it.
I need to include a DBMan call in the HTML.PL file. I did this:
sub sti {
open (FILE, "/home2/smart/public_html/millennio/cgi-bin/dbman/millennio.cgi") or die("Can't find.");
@lines = <FILE>;
close(FILE);
foreach $line (@lines) {
print $line;
}
}
This is working, however it prints out the whole CGI script if in the HTML.PL I write
&sti;
This is not the problem, however. If I include parameters after the script and execute it (millennio.cgi?db=users&uid=&view_records=1&ID=*) I get a file not found error. Any suggestion?
I need to include a DBMan call in the HTML.PL file. I did this:
sub sti {
open (FILE, "/home2/smart/public_html/millennio/cgi-bin/dbman/millennio.cgi") or die("Can't find.");
@lines = <FILE>;
close(FILE);
foreach $line (@lines) {
print $line;
}
}
This is working, however it prints out the whole CGI script if in the HTML.PL I write
&sti;
This is not the problem, however. If I include parameters after the script and execute it (millennio.cgi?db=users&uid=&view_records=1&ID=*) I get a file not found error. Any suggestion?