Login   Register  
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  >  Album Art Downloader  >  config.inc.php  >  Download  
File: config.inc.php
Role: Configuration script
Content type: text/plain
Description: database configuration file
Class: Album Art Downloader
Retrieve music album images from Amazon.com
Author: By
Last change: -removed unneeded include statement
Date: 5 years ago
Size: 737 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_HOSTGETID3_DB_USERGETID3_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>');
    }
?>