User Profile
Collapse
-
Try giving just the database name; why give absolute dir path?... -
-
Creating an index on date_time attribute would help.
CREATE INDEX IDX_table_date_ time ON table (date_time);
-bharad...Leave a comment:
-
write all your constants/declaration code in a perl program called, say, genlib.pl
wherever you need to use this, include the following line in your calling program (assuming genlib.pl is in path /var/www/cgi-bin):
include "/var/www/cgi-bin/genlib.pl";
and rest is history :)
-bharadLeave a comment:
-
brab,
usually, scripts executed by webservers are run as user, "apache" or "nobody", as configured.
it is not enough for the end directory to have write permissions for this user, but the entire path should have write permissions. ensure you have it. alternatively, try if the program writes in /tmp to start with. if it does, it is clearly a permission issue.
-bharadLeave a comment:
-
-
make sure you untaint the data before executing the scripts.
try this
if ($HOSTNAME =~ /^([ &:#-\@\w.]+)$/) {
$HOSTNAME = $1; #data is now untainted
} else {
print "bad data\n";
}
-bharad...Leave a comment:
No activity results to display
Show More
Leave a comment: