APM: cgi problem
Bob Richards
bob at blacklab.com
Wed Feb 25 10:29:44 CST 2004
I have a bunch of software on a server and about 5% of the time
cgi loses all the data coming from the previous page.
my sofware typically starts like this:
#!/usr/local/bin/perl
chdir "/home/sites/home/web/cgi";
push(@INC,"common/univtasks");
require("common/univtasks.pl");
use DBI;
use CGI;
&usup();
and then in univtasks I have the usup subroutine do this:
$q = new CGI;
(@names) = $q->param;
foreach (@names) {
$d{$_} = $q->param($_);
$dx .= "$_=$d{$_}&";
}
chop $dx;
open(DATA,">>/home/sites/home/data/tracker.txt");
print DATA "$ti \t $ENV{REMOTE_ADDR} \t $ENV{SCRIPT_URI}?$dx \n";
close (DATA);
Am I doing something wrong?
Is there a better way to do this?
Bob Richards
bob at blacklab.com
More information about the Austin
mailing list