My Config
xampp
Windows 64 bit
includes/pdo_class_lib.php
<?php
if (!defined('IN_ARCADE')) {die('Please use the front door');}
$db_options = array(
PDO::ATTR_EMULATE_PREPARES => false, // important! use actual prepared statements (default: emulate prepared statements)
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, // throw exceptions on errors (default: stay silent)
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC // fetch associative arrays (default: mixed arrays)
);
$database = new PDO('mysql:host='.$dbhost.';dbname='.$dbname.';charset=utf8', ''.$dbuser.'', ''.$dbpass.'', $db_options); // important! specify the character encoding in the DSN string, don't use SET NAMES
?>
if (!defined('IN_ARCADE')) {die('Please use the front door');}
$db_options = array(
PDO::ATTR_EMULATE_PREPARES => false, // important! use actual prepared statements (default: emulate prepared statements)
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, // throw exceptions on errors (default: stay silent)
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC // fetch associative arrays (default: mixed arrays)
);
$database = new PDO('mysql:host='.$dbhost.';dbname='.$dbname.';charset=utf8', ''.$dbuser.'', ''.$dbpass.'', $db_options); // important! specify the character encoding in the DSN string, don't use SET NAMES
?>
includes/config.php (Not Used)
<?php
/**
* @package (c) 2008 - 2020 Gnu Arcade Script
* @version $Id: config.php Version.1.0
* @license http://www.fsf.org/ GNU lesser General Public Licence
*/
if (!defined('IN_ARCADE')) {die('Please use the front door');}
$dbhost = 'localhost'; // Database host - usually localhost
$dbuser = 'root'; // Database User Name
$dbpass = ''; // Database Password
$dbname = 'arcade'; // Database Name
$dbpre = 0;
// Change the table prefix ONLY if you are using one database for everything and there's a conflict with the prefix.
$table_prefix = 'gnu_';
// DO NOT Change the table ENGINE As it's ONLY here for future changes to the Db.
$engine = 'MyISAM';
include "config_lang.php";
include "pdo_class_lib.php";
?>
/**
* @package (c) 2008 - 2020 Gnu Arcade Script
* @version $Id: config.php Version.1.0
* @license http://www.fsf.org/ GNU lesser General Public Licence
*/
if (!defined('IN_ARCADE')) {die('Please use the front door');}
$dbhost = 'localhost'; // Database host - usually localhost
$dbuser = 'root'; // Database User Name
$dbpass = ''; // Database Password
$dbname = 'arcade'; // Database Name
$dbpre = 0;
// Change the table prefix ONLY if you are using one database for everything and there's a conflict with the prefix.
$table_prefix = 'gnu_';
// DO NOT Change the table ENGINE As it's ONLY here for future changes to the Db.
$engine = 'MyISAM';
include "config_lang.php";
include "pdo_class_lib.php";
?>