source: trunk/docs/examples/db_auth.inc.php @ 334

Last change on this file since 334 was 334, checked in by quinn, 16 years ago

Fixed lots of misplings. I'm so embarrassed! ;P

File size: 481 bytes
Line 
1<?php
2/*
3* The credentials here are to be loaded only by command-line scripts executed
4* on the command line or via cron. This script should be not be readable by apache.
5* Ownership should be the web owner, with only user-readability, such as:
6* -rw-------@  1 bob  bob   416 Mar 10 16:59 global/db_auth.inc.php
7*/
8require_once 'codebase/lib/App.inc.php';
9$app =& App::getInstance();
10
11$app->setParam(array(
12    'db_name' => '',
13    'db_user' => '',
14    'db_pass' => '',
15));
16?>
Note: See TracBrowser for help on using the repository browser.