Login   Register  
PHP Classes
elePHPant
Icontem

File: tests/bootstrap.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Evaldo Barbosa  >  Puller  >  tests/bootstrap.php  >  Download  
File: tests/bootstrap.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: Puller
Scrape product data pages from e-commerce sites
Author: By
Last change:
Date: 1 year ago
Size: 390 bytes
 

Contents

Class file image Download
<?php
ini_set
("display_errors""on");
//ini_set("error_reporting",E_ALL ^ E_NOTICE ^ E_WARNING);
ini_set("error_reporting",E_ALL);

require_once 
__DIR__ '/../vendor/autoload.php';

$conn = new PDO(
  
'mysql:host=localhost;dbname=mydb',
    
"dbuser",
    
"dbuser123",
    array( 
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8' )
);
$conn->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);