I have to use DBMan to manage multiple small databases .. I am using mod html long /short.
My question is .. Can I Use certain sub routines from html.pl putting them in a separate file e.g. 'routines.pl'? I want to put those subroutines there which are constant for every database and those which need frequent changes will remain in html.pl as per their individual database.
okay I extracted the constant sub routines from html.pl and put them in a separate file and then added the following line in default.cfg
require $db_script_path . "/html.pl";
require $db_script_path . "/routines.pl"; ### ADDITION ###
Put the routines.pl in same directory with html.pl and chmod it 0666.
but it didn't work. please help me what I need to do additionally?
My question simply can be considered as I want to split html.pl in two files both containing different routines and should work with main script?
Is it possible or I am a dreamer?
Thanks,
Zeshan.
My question is .. Can I Use certain sub routines from html.pl putting them in a separate file e.g. 'routines.pl'? I want to put those subroutines there which are constant for every database and those which need frequent changes will remain in html.pl as per their individual database.
okay I extracted the constant sub routines from html.pl and put them in a separate file and then added the following line in default.cfg
require $db_script_path . "/html.pl";
require $db_script_path . "/routines.pl"; ### ADDITION ###
Put the routines.pl in same directory with html.pl and chmod it 0666.
but it didn't work. please help me what I need to do additionally?
My question simply can be considered as I want to split html.pl in two files both containing different routines and should work with main script?
Is it possible or I am a dreamer?
Thanks,
Zeshan.