PHP Classes

File: tests/bootstrap.php

Recommend this page to a friend!
  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: Update of tests/bootstrap.php
Date: 4 months 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_ERRMODE, PDO::ERRMODE_EXCEPTION);