Gossamer Forum
Home : Products : DBMan : Installation :

different path to data base

Quote Reply
different path to data base
Hi, I am looking for an solution for the following problem:



Originaly the .cfg file looks like this:



$db_dir_url = "http://www.mydomain.com/cgi-bin/resto2";
# URL of dbman.
$db_script_url = $db_dir_url . "/resto2.cgi";
# Full Path and File name of the database file.
$db_file_name = $db_script_path . "/resto2.db";
# Full path and file name of the counter file.
$db_id_file_name = $db_script_path . "/resto2.count";
# Full path and file name of the authorization directory.
$auth_dir = $db_script_path . "/auth";
# Full path and file name of the password file.
$auth_pw_file = $db_script_path . "/admin2.pass";
# Full path and file name of the log file.
$auth_log_file = $db_script_path . "/admin2.log";
# Full path and file name of the html routines.
require $db_script_path . "/master2.pl";



But I want to fetch the date from an different domain:

The following does not work.







$db_dir_url = "http://www.mydomain.com/cgi-bin/resto2";
# URL of dbman.
$db_script_url = $db_dir_url . "/resto2.cgi";
# Full Path and File name of the database file.
$db_file_name = "http://www.mydomain2.com/cgi-bin/resto2/resto2.db";
# Full path and file name of the counter file.
$db_id_file_name = "http://www.mydomain2.com/cgi-bin/resto2/resto2.count";
# Full path and file name of the authorization directory.
$auth_dir = $db_script_path . "/auth";
# Full path and file name of the password file.
$auth_pw_file = $db_script_path . "/admin2.pass";
# Full path and file name of the log file.
$auth_log_file = $db_script_path . "/admin2.log";
# Full path and file name of the html routines.
require $db_script_path . "/master2.pl";



Does anyone knew how I can solve my problem?



Sincerly Yours

Mark
Quote Reply
Re: [MarkBT] different path to data base In reply to
Just a guess,

but can you reset the $db_dir_url prior to $db_file_name?

or maybe create another variable called $db_dir_url2 ?

Again a guess, but if the 2 domains are not on the same server, Perl might time-out before the db file gets from server1 to server2.
Quote Reply
Re: [MarkBT] different path to data base In reply to
$db_file_name and $db_id_file_name have to be paths not URLs so no, you cannot access the database across two servers like that. Even if it were possible to read the data via http, you wouldn't be able to write to the database.