Gossamer Forum
Home : Products : DBMan : Installation :

Invalid config file name:

Quote Reply
Invalid config file name:
I am using multiple db's. To avoid information being entered in the wrong one I pass the database name onto the various screens.

Example: The Main Menu for $db_setup.

Is there any way that I can display these "two word" db names without jamming all the letters together?

Does the config file have to end in the suffix "cfg"? Could something like Washington.DC be made to work? N.Dakota?

Reason: Invalid config file name: Washington.DC at db.cgi line 36.
Reason: Invalid config file name: Washington-DC at db.cgi line 36.
Reason: Invalid config file name: Washington_DC at db.cgi line 36.

Much thanks!
Carolynn
Quote Reply
Re: Invalid config file name: In reply to
Got this going by adding the _ symbol inside the brakets of the above-mentioned line. Seems to do OK.

unless ($db_setup =~ /^[A-Za-z0-9_]+$/) { die "Invalid config file name:

Are we having fun or what? :-)

Carolynn