PHP Classes

File: sample/config.inc.php

Recommend this page to a friend!
  Classes of Martin Pircher   PHP Cron Job Manager Script   sample/config.inc.php   Download  
File: sample/config.inc.php
Role: Configuration script
Content type: text/plain
Description: Example script
Class: PHP Cron Job Manager Script
Add PHP scripts to be executed periodically
Author: By
Last change: Update of sample/config.inc.php
Date: 9 months ago
Size: 1,231 bytes
 

Contents

Class file image Download
<?php
/**
 * sample database configurations
 * @version 2009-11-16 17:49:25 +0100
 * @copyright Martin Pircher <mplx+code@donotreply.at>
 * @author Martin Pircher <mplx+code@donotreply.at>
 * @link http://www.pircher.net/
 * @license http://opensource.org/licenses/MIT MIT License
 * @package Cronjob
 */

/**
 * Database configuration: PDO MySQL
 */
$dbcfg = array(
   
'type' => 'mysql',
   
'host' => '10.0.0.127',
   
'database' => 'cronjob',
   
'user' => 'root',
   
'password' => '',
   
'table' => 'sample_' . 'cronjobs',
   
'options' => array(
                    \
PDO::ATTR_PERSISTENT => true,
                    \
PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION,
                    \
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'"
               
)
);

/**
 * Database configuration: PDO DSN
 */
$dbcfg = array(
   
'type' => 'pdo-dsn',
   
'dsn' => 'mysql:host=10.0.0.127;port=3306;dbname=cronjob',
   
'user' => 'root',
   
'password' => '',
   
'table' => 'sample_' . 'cronjobs',
   
'options' => array(
                    \
PDO::ATTR_PERSISTENT => true,
                    \
PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION,
                    \
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'"
               
)
);