PHP Classes
elePHPant
Icontem

File: config.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Mo´se  >  Handle Binary Files With PDO  >  config.php  >  Download  
File: config.php
Role: Configuration script
Content type: text/plain
Description: config file
Class: Handle Binary Files With PDO
Save and load binary files in databases using PDO
Author: By
Last change:
Date: 1 year ago
Size: 390 bytes
 

 

Contents

Class file image Download
<?php

    define
('hostname','localhost',true);
   
define('username','root',true);
   
define('password','',true);
   
define('database','lob',true);
   

    try
    {
       
$bdd=new PDO('mysql:host='.hostname.';dbname='.database,username,password,array(PDO::ATTR_ERRMODE=> PDO::ERRMODE_EXCEPTION,PDO::ATTR_PERSISTENT => true));
    }
    catch(
Exception $e)
    {
        die(
'Erreur:'.$e->getMessage());
    }
?>