PHP Classes
elePHPant
Icontem

File: config.inc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nadir Latif  >  Id3 Tag Correction and Downloading  >  config.inc.php  >  Download  
File: config.inc.php
Role: Configuration script
Content type: text/plain
Description: database configuration file
Class: Id3 Tag Correction and Downloading
Correct ID3 tags of music stored in a database
Author: By
Last change: Initial commit
Date: 7 months ago
Size: 818 bytes
 

Contents

Class file image Download
<?php
define
('GETID3_DB_HOST','localhost');
define('GETID3_DB_USER','user_name');
define('GETID3_DB_PASS','password');
define('GETID3_DB_DB','db_name');
define('GETID3_DB_TABLE','mp_id3_tags');
define('GETINDEX_DB_TABLE','mp_id3_index');
define('GETSUM_DB_TABLE','mp_admin_summary');
define('GETERR_DB_TABLE', 'mp_admin_errors');

if (!@
mysql_connect(GETID3_DB_HOST, GETID3_DB_USER, GETID3_DB_PASS))
    {
        die(
'Could not connect to MySQL host: <blockquote style="background-color: #FF9933; padding: 10px;">'.mysql_error().'</blockquote>');
    }
if (!@
mysql_select_db(GETID3_DB_DB))
    {
        die(
'Could not select database: <blockquote style="background-color: #FF9933; padding: 10px;">'.mysql_error().'</blockquote>');
    }
if (!@include_once(
'getid3/getid3.php'))
    {
    die(
'Cannot open '.realpath('getid3/getid3.php'));
    }
?>