This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// why PDO | |
// PDO provides a data-access abstraction layer | |
// PDO does not provide a database abstraction --> | |
// Full Structure of PDO | |
// PDO { | |
// __construct ( string $dsn [, string $username [, string $password [, array $driver_options ]]] ) | |
// bool beginTransaction ( void ) | |
// bool commit ( void ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* -------------------------------- functions ------------------------------- */ | |
// get backup of tabels in database PDO | |
function backup_tables($DBH, $tables) { | |
$DBH->setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_NATURAL); | |
//Script Variables | |
$compression = false; |
NewerOlder