Installation guide
Chapter 9: Customizing the FlashCONNECT Server and Web Server
108 FlashCONNECT Administrator’s Guide
Example
UncategorizedException= Uncategorized Specifies the redirect URL for
uncategorized exception errors.
NOTE—If the database detects an error, it calls the w3processerror BASIC program.
The source code for this program may be customized and is located in the
wbp file.
#!/usr/bin/perl
#
# There has been a FlashCONNECT exception redirected here.
# Generate a web page showing all available info.
# Start with the cgi interface
print "content-type: text/html\n\n";
# Now the html tag
print "<HTML>
print "<HEAD><TITLE>Perl processing of redirection</TITLE></HEAD>\n";
print "<BODY>\n
print "<P>FlashCONNECT exception redirection!\n";
# Display the env vars if available
$env_file = @ARGV[0];
if ($env_file){
print "<P>There are some environment variables for clues!\n";
print "They're in $env_file, and the ones with values are:\n";
open(FH,$env_file);
while (<FH>){ # read the next line of the file
chop; # remove the line terminator
$_ =~ / /; # look for a space in the default variable
if ($' ne ""){ # if text exists to the right of the space...
print "<P>\n"; # start a new paragraph
print $_; # print the line
}
}
print "\n";
close(FH);
unlink $env_file; # delete the file so they do not accumulate
}
# Now the final html tags
print "</BODY>\n";
print "</HTML>\n";
Parameter (UNIX) Parameter
(Windows)
Description