On Tue, 25 Oct 2005 01:07:49 +0200, Webmaster Techcode.NET wrote:
Hi Alex
> In config file I have something like :
[snip]
> [autoreorder]
> dsn=dbi:mysql:autoreorder
> username=alex
> name=autoreorder
You use Config::Simple, and from my reply to Mark you can see I use
CGI::Application::Plugin::Config::Context, so the end result is the same.
> And all hard work is done by the DBIx::Handy and a bit of code that
Right, but I'm /very/ surprised you've reinvented the wheel. Why not just use
DBIx::SQLEngine, and get stable, tested code supporting multiple databases?
> Runmodes. But when it's use outside (such as from
> delete_sessions.pl) we need to call new and pass different path to
> the config file.
>
> Config file is same, but their relative location to one another is
> different as cronjob set it's own working directory.
Yep, this problem must be solved every time.
$many x $thanx for the reply.
--
Cheers
Ron Savage, suppressed on 25/10/2005
http://savage.net.au/index.html
Let the record show: Microsoft is not an Australian company
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.