Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: aXML vs TT2

by ikegami (Pope)
on Oct 23, 2011 at 06:19 UTC ( #933156=note: print w/replies, xml ) Need Help??

in reply to aXML vs TT2

I just notice you didn't include the equivalent of [% USE DBI('dbi:mSQL:mydbname') %], so it's not really a fare comparison. You surely specify the name of the database to connect to somewhere.

My question is: Does one need to load the modules, or are installed modules are loaded automatically?

Replies are listed 'Best First'.
Re^2: aXML vs TT2
by Logicus on Oct 23, 2011 at 06:23 UTC

    DSN information is stored in the site's private file, and if present automatically causes the system to use DBI and attempt to connect to the database.

    Package Conf; our $conf = { 'sitetitle' => 'Acme Site', 'dsn' => 'DBI:mysql:forum:localhost:3306', 'dsn_username' => 'xxxx', 'dsn_password' => 'xxxxxx', '404' => '404', 'default_action' => 'default', 'doc_root' => '/var/www', 'debug' => 0 }; 1;

    The values in the conf can also be accessed from within the document with the <conf> tag I.E:

    <conf>sitetitle</conf> Output: ------- Acme Site

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://933156]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2021-10-23 12:24 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (88 votes). Check out past polls.