Gossamer Forum
Home : Products : DBMan : Customization :

Splitting Html.pl in to two?

Quote Reply
Splitting Html.pl in to two?
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.






Subject Author Views Date
Thread Splitting Html.pl in to two? zeshan 2638 Sep 16, 2003, 8:11 PM
Thread Re: [zeshan] Splitting Html.pl in to two?
LoisC 2577 Sep 16, 2003, 9:53 PM
Thread Re: [LoisC] Splitting Html.pl in to two?
zeshan 2571 Sep 17, 2003, 2:57 PM
Post Re: [zeshan] Splitting Html.pl in to two?
LoisC 2569 Sep 17, 2003, 10:19 PM